summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-06 17:04:55 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-06 23:17:11 +0200
commit6cd12577572b9685603e9df14612a73162f29c35 (patch)
tree3651c87ff55f016097ed962519ffe4324c926b0c
parentcd1dff75561aa132f8dccd0a3c79b80962f3d161 (diff)
Fix native GTK2 dialogs to receive focus
Task-number: QTBUG-41406 Change-Id: I00f317e5ef62f63c37e9610e1f8ea00af2740b99 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
-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;
}