diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-17 13:40:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-17 13:40:14 +0300 |
commit | 2cb9f5c3d47077a459fabf15800b1c45cfdacb3a (patch) | |
tree | ad6eba1142495acd31dc8a50b56988a26350f2d5 /src/gui/windows/npcdialog.cpp | |
parent | 829cd57e021ea85cffdbd3f3a7b18da835e00b7c (diff) | |
download | manaplus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.gz manaplus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.bz2 manaplus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.xz manaplus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.zip |
Remove proxy methods used for access popup menu.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index d11dca0a9..8b7a938b0 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -38,6 +38,8 @@ #include "gui/fonts/font.h" +#include "gui/popups/popupmenu.h" + #include "gui/windows/inventorywindow.h" #include "gui/widgets/browserbox.h" @@ -948,8 +950,12 @@ void NpcDialog::mousePressed(MouseEvent &event) && event.getSource() == mTextBox) { event.consume(); - if (popupManager) - popupManager->showNpcDialogPopup(mNpcId); + if (popupMenu) + { + popupMenu->showNpcDialogPopup(mNpcId, + viewport->getMouseX(), + viewport->getMouseY()); + } } } |