diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-21 17:32:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-21 18:51:45 +0300 |
commit | 3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173 (patch) | |
tree | 8791e88608a737b0cb56997743a1404f982eecc8 /src/gui/windowmenu.cpp | |
parent | 1dd71a1f8489b35d1c989fb0477122224d981853 (diff) | |
download | manaverse-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.gz manaverse-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.bz2 manaverse-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.xz manaverse-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.zip |
Add consume calls into mouse press / click handlers.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 616afa46d..868455de5 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -239,8 +239,12 @@ void WindowMenu::mousePressed(MouseEvent &event) if (!viewport) return; - if (!mSmallWindow && event.getButton() == MouseEvent::RIGHT) + if (event.getButton() == MouseEvent::RIGHT) { + if (mSmallWindow) + return; + + event.consume(); Button *const btn = dynamic_cast<Button*>(event.getSource()); if (!btn) return; |