From 6f5b826b89f6a481d358e02dd45a3da8209aadee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Oct 2014 00:22:33 +0300 Subject: Dont hide text popup if mouse event already consumed. --- src/gui/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/viewport.cpp') diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index ed717af4f..6008b5e43 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -743,7 +743,7 @@ void Viewport::optionChanged(const std::string &name) mLongMouseClick = config.getBoolValue("longmouseclick"); } -void Viewport::mouseMoved(MouseEvent &event A_UNUSED) +void Viewport::mouseMoved(MouseEvent &event) { // Check if we are on the map if (!mMap || !localPlayer || !actorManager) @@ -808,7 +808,7 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED) } } } - if (popupManager->isTextPopupVisible()) + if (!event.isConsumed() && popupManager->isTextPopupVisible()) popupManager->hideTextPopup(); if (mHoverBeing) -- cgit v1.2.3-70-g09d2