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>
This commit is contained in:
Jonathan Liu 2013-08-03 22:42:57 +10:00 committed by The Qt Project
parent be5225cace
commit 4a195b020e

View File

@ -2103,7 +2103,7 @@ QPlatformDialogHelper *createHelper(QPlatformTheme::DialogType type)
|| QSysInfo::windowsVersion() <= QSysInfo::WV_2003) { || QSysInfo::windowsVersion() <= QSysInfo::WV_2003) {
return new QWindowsXpFileDialogHelper(); return new QWindowsXpFileDialogHelper();
} }
if (QSysInfo::windowsVersion() > QSysInfo::WV_XP) if (QSysInfo::windowsVersion() > QSysInfo::WV_2003)
return new QWindowsFileDialogHelper(); return new QWindowsFileDialogHelper();
#else #else
return new QWindowsFileDialogHelper(); return new QWindowsFileDialogHelper();