From a23a99247bb6c6244e427350164cc1c2de90ce9a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 May 2013 20:30:23 +0300 Subject: fix scrollbars in dropdown popups. --- src/gui/widgets/popuplist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/popuplist.cpp') 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); -- cgit v1.2.3-70-g09d2