summaryrefslogtreecommitdiffstats
path: root/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp')
-rw-r--r--src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp b/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
index 76221875b6..c5f8338dab 100644
--- a/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
+++ b/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
@@ -124,6 +124,7 @@ bool QGtk2Dialog::show(Qt::WindowFlags flags, Qt::WindowModality modality, QWind
}
gtk_widget_show(gtkWidget);
+ gdk_window_focus(gtkWidget->window, 0);
return true;
}