diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 02:37:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 02:37:54 +0300 |
commit | a44ad060d637ec363100d05ffc5a11fb52fef4af (patch) | |
tree | be29346eff37d383e0ffa859eb17a83e6d1163c6 /src/gui | |
parent | 955c9fcba2a4a8b19389760bc74a59ab2173de02 (diff) | |
download | manaplus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.gz manaplus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.bz2 manaplus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.xz manaplus-a44ad060d637ec363100d05ffc5a11fb52fef4af.zip |
Fix possible crash in popup list.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/popuplist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp index 3a27b78a1..d9f44da94 100644 --- a/src/gui/widgets/popuplist.cpp +++ b/src/gui/widgets/popuplist.cpp @@ -125,7 +125,7 @@ void PopupList::mousePressed(gcn::MouseEvent& mouseEvent) void PopupList::focusGained(const gcn::Event& event A_UNUSED) { const gcn::Widget *const source = event.getSource(); - if (source == this || source == mListBox + if (!mVisible || source == this || source == mListBox || source == mScrollArea || source == mDropDown) { return; |