summaryrefslogtreecommitdiff
path: root/src/gui/windows/outfitwindow.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/outfitwindow.cpp
parent829cd57e021ea85cffdbd3f3a7b18da835e00b7c (diff)
downloadManaVerse-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.gz
ManaVerse-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.bz2
ManaVerse-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.xz
ManaVerse-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.zip
Remove proxy methods used for access popup menu.
Diffstat (limited to 'src/gui/windows/outfitwindow.cpp')
-rw-r--r--src/gui/windows/outfitwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index a74967bb4..0cd35e289 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -34,6 +34,9 @@
#include "input/inputmanager.h"
#include "gui/popupmanager.h"
+#include "gui/viewport.h"
+
+#include "gui/popups/popupmenu.h"
#include "gui/windows/setupwindow.h"
@@ -421,9 +424,10 @@ void OutfitWindow::mouseDragged(MouseEvent &event)
void OutfitWindow::mousePressed(MouseEvent &event)
{
const int index = getIndexFromGrid(event.getX(), event.getY());
- if (event.getButton() == MouseButton::RIGHT && popupManager)
+ if (event.getButton() == MouseButton::RIGHT && popupMenu)
{
- popupManager->showOutfitsPopup();
+ popupMenu->showOutfitsPopup(viewport->getMouseX(),
+ viewport->getMouseY());
event.consume();
return;
}