diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-02 17:20:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-02 17:20:30 +0300 |
commit | bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba (patch) | |
tree | a026321de2bf68fbdb9972ee3fdbf894097d5f04 /src/gui/widgets/characterdisplay.cpp | |
parent | 70a9ee7cc6a2402c33c3cdd33bc86f02fcb59ade (diff) | |
download | plus-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.gz plus-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.bz2 plus-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.tar.xz plus-bb6e522a1c35b463e2fc51b048a4aaa5c3fc35ba.zip |
Fix some broken window draw unit tests.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r-- | src/gui/widgets/characterdisplay.cpp | 6 |
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) |