summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-05-07 10:31:33 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-05-07 10:49:02 (GMT)
commit7a33db368c6debf9668b1c11885ed2329c35e200 (patch)
tree861bb4b6a6abbfaa7f01f9768dbc6400b9ff14ce /src/gui/kernel
parent3108e5991abf2bff88ddf160baa3e955c956e155 (diff)
downloadQt-7a33db368c6debf9668b1c11885ed2329c35e200.zip
Qt-7a33db368c6debf9668b1c11885ed2329c35e200.tar.gz
Qt-7a33db368c6debf9668b1c11885ed2329c35e200.tar.bz2
Windows CE: fix multiple QAction::triggered() signals
Adding the same menu action object to n menu bars resulted in n QAction::triggered() signals. Now, we're comparing the active window with the parent HWND of the menu bar before triggering. Task-number: QTBUG-10402 Reviewed-by: thartman
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qapplication_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 49cb0f2..6c30a4a 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -2447,7 +2447,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam
QApplication::postEvent(widget, new QEvent(QEvent::Close));
else
#ifndef QT_NO_MENUBAR
- QMenuBar::wceCommands(LOWORD(wParam), (HWND) lParam);
+ QMenuBar::wceCommands(LOWORD(wParam));
#endif
result = true;
}