summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 02:37:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 02:37:54 +0300
commita44ad060d637ec363100d05ffc5a11fb52fef4af (patch)
treebe29346eff37d383e0ffa859eb17a83e6d1163c6 /src/gui/widgets
parent955c9fcba2a4a8b19389760bc74a59ab2173de02 (diff)
downloadplus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.gz
plus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.bz2
plus-a44ad060d637ec363100d05ffc5a11fb52fef4af.tar.xz
plus-a44ad060d637ec363100d05ffc5a11fb52fef4af.zip
Fix possible crash in popup list.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/popuplist.cpp2
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;