summaryrefslogtreecommitdiffstats
path: root/src/gui/util
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-03-10 10:58:24 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:24:44 (GMT)
commitcb319caf08384c00a56d37a9bb14509b04f139e7 (patch)
tree12ab3d2deace71ad1e865a91f232ad5df8e0e443 /src/gui/util
parenteb65a8de45b3813d154b6ba00de0de025dadc7d8 (diff)
downloadQt-cb319caf08384c00a56d37a9bb14509b04f139e7.zip
Qt-cb319caf08384c00a56d37a9bb14509b04f139e7.tar.gz
Qt-cb319caf08384c00a56d37a9bb14509b04f139e7.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 338478a..7a57284 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;