diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-29 18:40:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-29 18:40:47 +0300 |
commit | 158e2b5eb03ae01bf5c49f87292bf7aca8ae749b (patch) | |
tree | d6aa6fc7edcdc19b8edf1222bb85b047710e94f5 /src/gui/gui.cpp | |
parent | 12b83ad925ecc0b6416a12a9f83757fbd1f04d79 (diff) | |
download | mv-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.gz mv-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.bz2 mv-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.xz mv-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.zip |
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 3 |
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(); |