[Pkg-owncloud-commits] [owncloud-client] 34/47: Disable explorer.exe integration on WinXP

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Feb 17 18:06:34 UTC 2014


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 e134ae22acb7358403714f9ffd233312d116dfd9
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Feb 13 17:21:15 2014 +0100

    Disable explorer.exe integration on WinXP
---
 src/mirall/utility.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp
index 61942a4..35d7f83 100644
--- a/src/mirall/utility.cpp
+++ b/src/mirall/utility.cpp
@@ -28,6 +28,7 @@
 #include <QProcess>
 #include <QThread>
 #include <QDateTime>
+#include <QSysInfo>
 
 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
 #include <QDesktopServices>
@@ -341,6 +342,11 @@ static bool checkDolphinCanSelect()
 void Utility::showInFileManager(const QString &localPath)
 {
     if (isWindows()) {
+#ifdef Q_OS_WIN
+        if (QSysInfo::windowsVersion() <= QSysInfo::WV_2003) {
+            return;
+        }
+#endif
         QString explorer = "explorer.exe "; // FIXME: we trust it's in PATH
 
         if (!QFileInfo(localPath).isDir()) {

-- 
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