mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Disable explorer.exe integration on WinXP
This commit is contained in:
parent
86e90451fa
commit
e134ae22ac
1 changed files with 6 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue