summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-17 13:40:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-17 13:40:14 +0300
commit2cb9f5c3d47077a459fabf15800b1c45cfdacb3a (patch)
treead6eba1142495acd31dc8a50b56988a26350f2d5 /src/gui/windows/minimap.cpp
parent829cd57e021ea85cffdbd3f3a7b18da835e00b7c (diff)
downloadmv-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.gz
mv-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.bz2
mv-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.xz
mv-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.zip
Remove proxy methods used for access popup menu.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r--src/gui/windows/minimap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 615db0d85..16e18fe35 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -32,6 +32,7 @@
#include "gui/popupmanager.h"
#include "gui/viewport.h"
+#include "gui/popups/popupmenu.h"
#include "gui/popups/textpopup.h"
#include "gui/windows/setupwindow.h"
@@ -459,7 +460,9 @@ void Minimap::mouseReleased(MouseEvent &event)
int x = event.getX();
int y = event.getY();
screenToMap(x, y);
- popupManager->showMapPopup(x, y);
+ popupMenu->showMapPopup(viewport->getMouseX(),
+ viewport->getMouseY(),
+ x, y);
}
}