summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-17 14:10:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-17 14:10:45 +0300
commitce6110221f43e5b8cd24ba954de17d00ac84fc9d (patch)
treef486d1749c879dc9a99add1df9617c8f3f0cb453 /src/gui/viewport.cpp
parentdbf6fd812e5eff87a8fc38c4f5635845493885b1 (diff)
downloadmv-ce6110221f43e5b8cd24ba954de17d00ac84fc9d.tar.gz
mv-ce6110221f43e5b8cd24ba954de17d00ac84fc9d.tar.bz2
mv-ce6110221f43e5b8cd24ba954de17d00ac84fc9d.tar.xz
mv-ce6110221f43e5b8cd24ba954de17d00ac84fc9d.zip
Remove proxy methods used for access text popup.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 9bacfeb94..01e20f55d 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -47,6 +47,7 @@
#include "gui/popups/beingpopup.h"
#include "gui/popups/popupmenu.h"
+#include "gui/popups/textpopup.h"
#include "gui/windows/ministatuswindow.h"
@@ -791,8 +792,11 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED)
if (!mHoverSign->getComment().empty())
{
popupManager->hideBeingPopup();
- popupManager->showTextPopup(mMouseX, mMouseY,
- mHoverSign->getComment());
+ if (textPopup)
+ {
+ textPopup->show(mMouseX, mMouseY,
+ mHoverSign->getComment());
+ }
}
else
{