diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-24 15:04:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 20:18:59 +0300 |
commit | 2bde1b0193dbef84c9d95c9826aecb910d901196 (patch) | |
tree | 7f4e3cd41df3a41459f9bde2b5a80c73d755fe72 /src/gui/popups/popupmenu.cpp | |
parent | 9d521a19be347703bfdbb7802d0397a59c3edd7a (diff) | |
download | mv-2bde1b0193dbef84c9d95c9826aecb910d901196.tar.gz mv-2bde1b0193dbef84c9d95c9826aecb910d901196.tar.bz2 mv-2bde1b0193dbef84c9d95c9826aecb910d901196.tar.xz mv-2bde1b0193dbef84c9d95c9826aecb910d901196.zip |
Add missing checks into popups.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f136e5bd5..10ae03365 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -968,6 +968,9 @@ void PopupMenu::showWindowPopup(Window *const window) void PopupMenu::addWindowMenu(Window *const window) { + if (!window) + return; + if (window->getCloseButton()) { // TRANSLATORS: popup menu item |