summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
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
{