diff options
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 1cb7683e9..65a5b10c9 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -360,7 +360,7 @@ void DropDown::mousePressed(MouseEvent& event) { event.consume(); // If we have a mouse press on the widget. - if (event.getButton() == MouseEvent::LEFT + if (event.getButton() == MouseButton::LEFT && !mDroppedDown && event.getSource() == this) { mPushed = true; @@ -385,12 +385,12 @@ void DropDown::mouseReleased(MouseEvent &event) // Released outside of widget. Can happen when we have modal // input focus. if ((0 > y || y >= mDimension.height || x < 0 || x >= mDimension.width) - && button == MouseEvent::LEFT) + && button == MouseButton::LEFT) { if (mIsDragged) foldUp(); } - else if (button == MouseEvent::LEFT) + else if (button == MouseButton::LEFT) { mPushed = false; } |