diff options
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 5a81f73be..18a53b93d 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -369,7 +369,7 @@ void WindowMenu::saveButtons() it != it_end; ++it) { const Button *const btn = dynamic_cast<const Button *const>(*it); - if (!btn->isVisible()) + if (btn && !btn->isVisible()) { config.setValue("windowmenu" + toString(i), btn->getActionEventId()); |