From f53e001120632302d214c9b90c373019448a889b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Jun 2011 00:19:35 +0300 Subject: Fix context menu positions in some windows. --- src/gui/viewport.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/viewport.cpp') diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 15353d9f9..0fc7444ec 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -630,6 +630,11 @@ void Viewport::showPopup(int x, int y, Being *being) mPopupMenu->showPopup(x, y, being); } +void Viewport::showPopup(Being *being) +{ + mPopupMenu->showPopup(getMouseX(), getMouseY(), being); +} + void Viewport::showPlayerPopup(std::string nick) { mPopupMenu->showPlayerPopup(getMouseX(), getMouseY(), nick); -- cgit v1.2.3-70-g09d2