diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-04 19:23:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-04 19:23:03 +0300 |
commit | 9706e377c799d4b2c0a9f88c8ba6768bf2ea858c (patch) | |
tree | 37bc6dc1cfdac6d392409bc520ac6288a7810989 /src/gui/windowmenu.cpp | |
parent | 367c92d1ac584eb7ad5812f717aea27456f44e5f (diff) | |
download | manaverse-9706e377c799d4b2c0a9f88c8ba6768bf2ea858c.tar.gz manaverse-9706e377c799d4b2c0a9f88c8ba6768bf2ea858c.tar.bz2 manaverse-9706e377c799d4b2c0a9f88c8ba6768bf2ea858c.tar.xz manaverse-9706e377c799d4b2c0a9f88c8ba6768bf2ea858c.zip |
Remove isVisible getter from widget.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 7360b4a5e..da313a729 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -218,7 +218,7 @@ WindowMenu::~WindowMenu() Button *const btn = *it; if (!btn) continue; - if (!btn->isVisibleLocal()) + if (btn->mVisible == Visible_false) delete btn; } delete_all(mButtonTexts); @@ -361,7 +361,7 @@ void WindowMenu::updateButtons() Button *const btn = *it; if (!btn) continue; - if (btn->isVisibleLocal()) + if (btn->mVisible == Visible_true) { btn->setPosition(x, mPadding); add(btn); @@ -429,7 +429,7 @@ void WindowMenu::saveButtons() const FOR_EACH (std::vector <Button*>::const_iterator, it, mButtons) { const Button *const btn = *it; - if (btn && !btn->isVisibleLocal()) + if (btn && btn->mVisible == Visible_false) { config.setValue("windowmenu" + toString(i), btn->getActionEventId()); |