summaryrefslogtreecommitdiffstats
path: root/src/gui/util
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-03-10 10:58:24 (GMT)
committerMartin Petersson <martin.petersson@nokia.com>2011-03-10 11:00:32 (GMT)
commitbbc6358d5259951e3f1ede41301d303bc10948ba (patch)
tree078962e9aaac1d437fe3a15a5b9ad04095749ef3 /src/gui/util
parent206b614f2e9623d792e6f398bf11765a44c272f5 (diff)
downloadQt-bbc6358d5259951e3f1ede41301d303bc10948ba.zip
Qt-bbc6358d5259951e3f1ede41301d303bc10948ba.tar.gz
Qt-bbc6358d5259951e3f1ede41301d303bc10948ba.tar.bz2
Windows: Activate the context menu on tray icons when shown.
Task-number: QTBUG-14807 Reviewed-by: Markus Goetz
Diffstat (limited to 'src/gui/util')
-rw-r--r--src/gui/util/qsystemtrayicon_win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/util/qsystemtrayicon_win.cpp b/src/gui/util/qsystemtrayicon_win.cpp
index 2b7935b..5a0e179 100644
--- a/src/gui/util/qsystemtrayicon_win.cpp
+++ b/src/gui/util/qsystemtrayicon_win.cpp
@@ -305,6 +305,7 @@ bool QSystemTrayIconSys::winEvent( MSG *m, long *result )
case WM_CONTEXTMENU:
if (q->contextMenu()) {
q->contextMenu()->popup(gpos);
+ q->contextMenu()->activateWindow();
}
emit q->activated(QSystemTrayIcon::Context);
break;