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/listbox.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/listbox.cpp')
-rw-r--r-- | src/gui/widgets/listbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp index c41e32854..341204505 100644 --- a/src/gui/widgets/listbox.cpp +++ b/src/gui/widgets/listbox.cpp @@ -275,7 +275,7 @@ void ListBox::mouseWheelMovedDown(MouseEvent &event A_UNUSED) void ListBox::mousePressed(MouseEvent &event) { mPressedIndex = getSelectionByMouse(event.getY()); - if (mPressedIndex != -1) + if (mMouseConsume && mPressedIndex != -1) event.consume(); } |