summaryrefslogtreecommitdiff
path: root/src/listeners/tooltiplistener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/tooltiplistener.cpp')
-rw-r--r--src/listeners/tooltiplistener.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/tooltiplistener.cpp b/src/listeners/tooltiplistener.cpp
index 0080230d3..0281be969 100644
--- a/src/listeners/tooltiplistener.cpp
+++ b/src/listeners/tooltiplistener.cpp
@@ -35,7 +35,7 @@ ToolTipListener::ToolTipListener() :
void ToolTipListener::mouseMoved(MouseEvent &event)
{
- if (mToolTip.empty())
+ if (mToolTip.empty() || !textBoxPopup)
return;
int x = 0;
@@ -56,7 +56,7 @@ void ToolTipListener::mouseMoved(MouseEvent &event)
void ToolTipListener::mouseExited(MouseEvent &event A_UNUSED)
{
- if (mToolTip.empty())
+ if (mToolTip.empty() || !textBoxPopup)
return;
textBoxPopup->hide();
}