summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-22 16:17:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-22 16:17:55 +0300
commit937518a2587c2c63649c2e011c33338b7eafe87c (patch)
tree0cdb75949f69c84c0e01358037e9f82c7ea21fa3 /src/gui/gui.cpp
parent7b07b0a09fd9799a7aca09c0dcd97a53547b0fa1 (diff)
downloadmanaplus-937518a2587c2c63649c2e011c33338b7eafe87c.tar.gz
manaplus-937518a2587c2c63649c2e011c33338b7eafe87c.tar.bz2
manaplus-937518a2587c2c63649c2e011c33338b7eafe87c.tar.xz
manaplus-937518a2587c2c63649c2e011c33338b7eafe87c.zip
Block consumed mouse events handling.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 275103a25..aca1ef4b3 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -926,6 +926,9 @@ void Gui::distributeMouseEvent(Widget *const source,
if (type == MouseEvent::RELEASED)
dragDrop.clear();
+ if (event.isConsumed())
+ break;
+
// If a non modal focused widget has been reach
// and we have modal focus cancel the distribution.
if (mFocusHandler->getModalFocused()