summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_win.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-03-23 13:37:00 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-03-23 13:52:27 (GMT)
commit3fbedcd085b3e89e3646bf49264001ee216c5852 (patch)
tree61ef32b97a644154cf48c7f885f42cb4d5a7335c /src/gui/kernel/qapplication_win.cpp
parent265b6b3383e8e3adb89db2e6015ef10e405cf418 (diff)
downloadQt-3fbedcd085b3e89e3646bf49264001ee216c5852.zip
Qt-3fbedcd085b3e89e3646bf49264001ee216c5852.tar.gz
Qt-3fbedcd085b3e89e3646bf49264001ee216c5852.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
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-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 ae9b34c..1a649ea 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -1578,6 +1578,10 @@ extern "C" LRESULT QT_WIN_CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wPa
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;