summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-08-03 22:42:57 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-11 06:04:13 +0200
commit4a195b020ef1175771be391f925c661f1758c5fd (patch)
tree663279bf6e9b2b2f9f26885a3faca79ab51078e7 /src/plugins/platforms/windows
parentbe5225cacea551da8138ab1ba1b9b48d30dbbfd5 (diff)
Do not use QWindowsFileDialogHelper for Windows Server 2003
Windows Server 2003 is based on Windows XP and should use QWindowsXpFileDialogHelper as it does not support the CLSID-based IFileDialog interfaces that are available from Windows Vista onwards. Change-Id: Idd973f9ec4c98d1f2fb7e835de64532edeccfc72 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
-rw-r--r--src/plugins/platforms/windows/qwindowsdialoghelpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
index 33bed61398..27a7044868 100644
--- a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
+++ b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
@@ -2103,7 +2103,7 @@ QPlatformDialogHelper *createHelper(QPlatformTheme::DialogType type)
|| QSysInfo::windowsVersion() <= QSysInfo::WV_2003) {
return new QWindowsXpFileDialogHelper();
}
- if (QSysInfo::windowsVersion() > QSysInfo::WV_XP)
+ if (QSysInfo::windowsVersion() > QSysInfo::WV_2003)
return new QWindowsFileDialogHelper();
#else
return new QWindowsFileDialogHelper();