summaryrefslogtreecommitdiffstats
path: root/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platformthemes/gtk2/qgtk2theme.cpp')
-rw-r--r--src/plugins/platformthemes/gtk2/qgtk2theme.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platformthemes/gtk2/qgtk2theme.cpp b/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
index c7e612d1d6..c685d7b13c 100644
--- a/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
+++ b/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
@@ -56,7 +56,7 @@ QGtk2Theme::QGtk2Theme()
bool QGtk2Theme::usePlatformNativeDialog(DialogType type) const
{
- return type == ColorDialog;
+ return type == ColorDialog || type == FileDialog;
}
QPlatformDialogHelper *QGtk2Theme::createPlatformDialogHelper(DialogType type) const
@@ -64,6 +64,8 @@ QPlatformDialogHelper *QGtk2Theme::createPlatformDialogHelper(DialogType type) c
switch (type) {
case ColorDialog:
return new QGtk2ColorDialogHelper;
+ case FileDialog:
+ return new QGtk2FileDialogHelper;
default:
return 0;
}