From a44ad060d637ec363100d05ffc5a11fb52fef4af Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Dec 2012 02:37:54 +0300 Subject: Fix possible crash in popup list. --- src/gui/widgets/popuplist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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; -- cgit v1.2.3-70-g09d2