summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-05 20:30:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-05 20:30:23 +0300
commita23a99247bb6c6244e427350164cc1c2de90ce9a (patch)
tree4b557a39cb49595861bf000ce2b322487e9ec5fa /src/gui
parent92d4c783c463433a202649c87e78dab3ad918daf (diff)
downloadmanaverse-a23a99247bb6c6244e427350164cc1c2de90ce9a.tar.gz
manaverse-a23a99247bb6c6244e427350164cc1c2de90ce9a.tar.bz2
manaverse-a23a99247bb6c6244e427350164cc1c2de90ce9a.tar.xz
manaverse-a23a99247bb6c6244e427350164cc1c2de90ce9a.zip
fix scrollbars in dropdown popups.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/popuplist.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp
index 6436817cb..a0d8b558a 100644
--- a/src/gui/widgets/popuplist.cpp
+++ b/src/gui/widgets/popuplist.cpp
@@ -123,8 +123,10 @@ void PopupList::adjustSize()
mListBox->setWidth(getWidth() - pad2);
}
-void PopupList::mousePressed(gcn::MouseEvent& mouseEvent A_UNUSED)
+void PopupList::mousePressed(gcn::MouseEvent& mouseEvent)
{
+ if (mouseEvent.getSource() == mScrollArea)
+ return;
if (mDropDown)
mDropDown->updateSelection();
setVisible(false);