summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
commitd1bb1b375d657f0821ccfebf18fa1c3873314690 (patch)
treeeb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/gui/windowmenu.cpp
parent9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff)
downloadplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip
Fix useless variables initialisations.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp2
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());