summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-29 18:40:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-29 18:40:47 +0300
commit158e2b5eb03ae01bf5c49f87292bf7aca8ae749b (patch)
treed6aa6fc7edcdc19b8edf1222bb85b047710e94f5 /src/gui/gui.cpp
parent12b83ad925ecc0b6416a12a9f83757fbd1f04d79 (diff)
downloadplus-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.gz
plus-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.bz2
plus-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.xz
plus-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.zip
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index c5d6bc95c..3fab73d0a 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -1467,7 +1467,8 @@ void Gui::handleModalFocusReleased()
Widget* widget = getMouseEventSource(mLastMouseX, mLastMouseY);
Widget* parent = widget;
- while (parent != nullptr)
+ while (parent != nullptr &&
+ widget != nullptr)
{
parent = widget->getParent();