summaryrefslogtreecommitdiff
path: root/src/gui/widgets/characterdisplay.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-02 17:20:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-02 17:20:30 +0300
commitbb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba (patch)
treea026321de2bf68fbdb9972ee3fdbf894097d5f04 /src/gui/widgets/characterdisplay.cpp
parent70a9ee7cc6a2402c33c3cdd33bc86f02fcb59ade (diff)
downloadmv-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.gz
mv-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.bz2
mv-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.xz
mv-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.zip
Fix some broken window draw unit tests.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r--src/gui/widgets/characterdisplay.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp
index 7aa9fe795..9ab8c2488 100644
--- a/src/gui/widgets/characterdisplay.cpp
+++ b/src/gui/widgets/characterdisplay.cpp
@@ -111,12 +111,14 @@ void CharacterDisplay::update()
void CharacterDisplay::widgetHidden(const Event &event A_UNUSED)
{
- textPopup->setVisible(Visible_false);
+ if (textPopup)
+ textPopup->setVisible(Visible_false);
}
void CharacterDisplay::mouseExited(MouseEvent &event A_UNUSED)
{
- textPopup->setVisible(Visible_false);
+ if (textPopup)
+ textPopup->setVisible(Visible_false);
}
void CharacterDisplay::mouseMoved(MouseEvent &event A_UNUSED)