summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-03-23 13:37:00 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:05:26 (GMT)
commit2f92ccd2a930870e4d768ba72e08278415f29751 (patch)
treed036ab4ada19412047489c115d1de023f3c5dd39
parent4450bd467d59e5b124fdb27e46944daa5cb17e4e (diff)
downloadQt-2f92ccd2a930870e4d768ba72e08278415f29751.zip
Qt-2f92ccd2a930870e4d768ba72e08278415f29751.tar.gz
Qt-2f92ccd2a930870e4d768ba72e08278415f29751.tar.bz2
After showing modal windows, WM_LBUTTONUP for double click is ignored.
We should not ignore WM_xBUTTONUP messages after WM_xBUTTONDBLCLK. Treat these messages like WM_xBUTTONDOWN messages. Task-number: QTBUG-7172 Reviewed-by: Thierry (cherry picked from commit 3fbedcd085b3e89e3646bf49264001ee216c5852)
-rw-r--r--src/gui/kernel/qapplication_win.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 4d30e20..fbfd40f 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -1579,6 +1579,10 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam
case WM_MBUTTONDOWN:
case WM_RBUTTONDOWN:
case WM_XBUTTONDOWN:
+ case WM_LBUTTONDBLCLK:
+ case WM_RBUTTONDBLCLK:
+ case WM_MBUTTONDBLCLK:
+ case WM_XBUTTONDBLCLK:
if (qt_win_ignoreNextMouseReleaseEvent)
qt_win_ignoreNextMouseReleaseEvent = false;
break;