[Pkg-owncloud-commits] [owncloud-client] 30/89: Fix opening the explorer with a selected file on windows.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Dec 14 01:02:32 UTC 2013


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit e5edb8e2c7375d7119bfca77b9fd78dff6983e86
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Mon Dec 9 16:12:23 2013 +0100

    Fix opening the explorer with a selected file on windows.
    
    Should Fix #1249
---
 src/mirall/utility.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp
index c23152f..d22ab13 100644
--- a/src/mirall/utility.cpp
+++ b/src/mirall/utility.cpp
@@ -305,11 +305,11 @@ void Utility::showInFileManager(const QString &localPath)
 {
     if (isWindows()) {
         const QString explorer = "explorer.exe"; // FIXME: we trust it's in PATH
-        QStringList param;
+        QString param;
         if (!QFileInfo(localPath).isDir())
             param += QLatin1String("/select,");
         param += QDir::toNativeSeparators(localPath);
-        QProcess::startDetached(explorer, param);
+        QProcess::startDetached(explorer, QStringList(param));
     } else if (isMac()) {
         QStringList scriptArgs;
         scriptArgs << QLatin1String("-e")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list