diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-03 20:41:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-03 20:41:04 +0300 |
commit | 855947baec01a77f18c8c3cee8c0af000131b71e (patch) | |
tree | 323a8589bcefdc6f400065a68dce297f7cda2467 /src/gui/widgets/scrollarea.cpp | |
parent | 2947d6af4334a736eab6ea1ad8147239311ea027 (diff) | |
download | manaplus-855947baec01a77f18c8c3cee8c0af000131b71e.tar.gz manaplus-855947baec01a77f18c8c3cee8c0af000131b71e.tar.bz2 manaplus-855947baec01a77f18c8c3cee8c0af000131b71e.tar.xz manaplus-855947baec01a77f18c8c3cee8c0af000131b71e.zip |
Fix close dropdowns on item selection.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index 2efa144c9..95a9cd399 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -866,7 +866,7 @@ void ScrollArea::mouseReleased(MouseEvent& event) } mClickX = 0; mClickY = 0; - if (dx || dy) + if (mMouseConsume && (dx || dy)) event.consume(); } } @@ -876,7 +876,8 @@ void ScrollArea::mouseReleased(MouseEvent& event) mRightButtonPressed = false; mIsHorizontalMarkerDragged = false; mIsVerticalMarkerDragged = false; - event.consume(); + if (mMouseConsume) + event.consume(); mRedraw = true; } |