diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-02 17:05:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-02 17:05:22 +0300 |
commit | 3279c64d25124dbe759f7ba4fffe5554c3dd9e1e (patch) | |
tree | caa87efca43cf2d959565f472ba039c2f2c48bb0 /src/gui/popups | |
parent | ef0f7af63a5e1bd73fb34c601f996e7aadf848c0 (diff) | |
download | manaverse-3279c64d25124dbe759f7ba4fffe5554c3dd9e1e.tar.gz manaverse-3279c64d25124dbe759f7ba4fffe5554c3dd9e1e.tar.bz2 manaverse-3279c64d25124dbe759f7ba4fffe5554c3dd9e1e.tar.xz manaverse-3279c64d25124dbe759f7ba4fffe5554c3dd9e1e.zip |
Improve isVisible usage.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 330df1a6c..504ad6426 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2164,7 +2164,7 @@ void PopupMenu::showPopup(const int x, const int y, Button *const button) if (!btn || btn->getActionEventId() == "SET") continue; - if (btn->isVisible()) + if (btn->isVisibleLocal()) { mBrowserBox->addRow(strprintf("@@hide button_%s|%s %s (%s)@@", // TRANSLATORS: popup menu item @@ -2209,7 +2209,7 @@ void PopupMenu::showPopup(const int x, const int y, const ProgressBar *const b) if (!bar) continue; - if (bar->isVisible()) + if (bar->isVisibleLocal()) { cnt ++; onlyBar = bar; @@ -2225,7 +2225,7 @@ void PopupMenu::showPopup(const int x, const int y, const ProgressBar *const b) if (!bar || bar == onlyBar) continue; - if (bar->isVisible()) + if (bar->isVisibleLocal()) { mBrowserBox->addRow(strprintf("@@hide bar_%s|%s %s@@", // TRANSLATORS: popup menu item |