summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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;