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/whoisonline.cpp | |
parent | 829cd57e021ea85cffdbd3f3a7b18da835e00b7c (diff) | |
download | plus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.gz plus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.bz2 plus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.tar.xz plus-2cb9f5c3d47077a459fabf15800b1c45cfdacb3a.zip |
Remove proxy methods used for access popup menu.
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index f19f2662c..c30f19b8e 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -31,6 +31,9 @@ #include "gui/onlineplayer.h" #include "gui/popupmanager.h" +#include "gui/viewport.h" + +#include "gui/popups/popupmenu.h" #include "gui/windows/chatwindow.h" #include "gui/windows/setupwindow.h" @@ -197,7 +200,7 @@ void WhoIsOnline::handleLink(const std::string& link, MouseEvent *event) if (localPlayer && link == localPlayer->getName()) return; - if (popupManager) + if (popupMenu) { if (actorManager) { @@ -207,11 +210,15 @@ void WhoIsOnline::handleLink(const std::string& link, MouseEvent *event) if (being && popupManager) { - popupManager->showPopup(being); + popupMenu->showPopup(viewport->getMouseX(), + viewport->getMouseY(), + being); return; } } - popupManager->showPlayerPopup(link); + popupMenu->showPlayerPopup(viewport->getMouseX(), + viewport->getMouseY(), + link); } } } |