diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-21 13:36:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-21 13:36:18 +0300 |
commit | 3a33b94eba99a45cfc2564916915e416975d0da5 (patch) | |
tree | 71e42dfc32bf85cbb42ee1ea4a6e8682c0d3a634 /src/gui/windows/minimap.cpp | |
parent | 9da6a5423c2faeb2bc0b85727aed19e4fc76f25b (diff) | |
download | plus-3a33b94eba99a45cfc2564916915e416975d0da5.tar.gz plus-3a33b94eba99a45cfc2564916915e416975d0da5.tar.bz2 plus-3a33b94eba99a45cfc2564916915e416975d0da5.tar.xz plus-3a33b94eba99a45cfc2564916915e416975d0da5.zip |
Fix context menu in minimap.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 71689805f..31d8169d1 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -436,6 +436,13 @@ void Minimap::draw(Graphics *graphics) BLOCK_END("Minimap::draw") } +void Minimap::mousePressed(MouseEvent &event) +{ + if (event.getButton() == MouseButton::RIGHT) + return; + Window::mousePressed(event); +} + void Minimap::mouseReleased(MouseEvent &event) { Window::mouseReleased(event); |