wince: Disable Native Filedialogs for WEC2013
Qt crashes when opening a native file dialog. Disable this feature to fix this issue. Change-Id: I1ee17d858238c2531964a63ddbe3e11c5a85483c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>bb10
parent
b169b5a4f3
commit
a58cf40044
|
|
@ -2173,6 +2173,7 @@ namespace QWindowsDialogs {
|
|||
// QWindowsDialogHelperBase creation functions
|
||||
bool useHelper(QPlatformTheme::DialogType type)
|
||||
{
|
||||
#if !defined(_WIN32_WCE) || _WIN32_WCE < 0x800
|
||||
if (QWindowsIntegration::instance()->options() & QWindowsIntegration::NoNativeDialogs)
|
||||
return false;
|
||||
switch (type) {
|
||||
|
|
@ -2191,10 +2192,14 @@ bool useHelper(QPlatformTheme::DialogType type)
|
|||
break;
|
||||
}
|
||||
return false;
|
||||
#else
|
||||
return false;
|
||||
#endif // !defined(_WIN32_WCE) || _WIN32_WCE < 0x800
|
||||
}
|
||||
|
||||
QPlatformDialogHelper *createHelper(QPlatformTheme::DialogType type)
|
||||
{
|
||||
#if !defined(_WIN32_WCE) || _WIN32_WCE < 0x800
|
||||
if (QWindowsIntegration::instance()->options() & QWindowsIntegration::NoNativeDialogs)
|
||||
return 0;
|
||||
switch (type) {
|
||||
|
|
@ -2222,6 +2227,9 @@ QPlatformDialogHelper *createHelper(QPlatformTheme::DialogType type)
|
|||
break;
|
||||
}
|
||||
return 0;
|
||||
#else
|
||||
return 0;
|
||||
#endif // !defined(_WIN32_WCE) || _WIN32_WCE < 0x800
|
||||
}
|
||||
|
||||
} // namespace QWindowsDialogs
|
||||
|
|
|
|||
Loading…
Reference in New Issue