diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-09 18:17:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-09 18:17:50 +0300 |
commit | 4aeceabb5d4f00e2555234951a2f5db24b008265 (patch) | |
tree | 16e970611e7cc05352f18a9385b9e26c72d498d8 /src/actionmanager.cpp | |
parent | dd4d44a07d3a63ced0eec51c30b75887792c4a36 (diff) | |
download | mv-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.gz mv-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.bz2 mv-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.xz mv-4aeceabb5d4f00e2555234951a2f5db24b008265.zip |
Improve perfomance in windows and popups visibility checks.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index fbdca92b1..3516a1909 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -205,13 +205,13 @@ impHandler0(mouseClick) impHandler0(ok) { // Close the Browser if opened - if (helpWindow && helpWindow->isVisible()) + if (helpWindow && helpWindow->isWindowVisible()) { helpWindow->setVisible(false); return true; } // Close the config window, cancelling changes if opened - else if (setupWindow && setupWindow->isVisible()) + else if (setupWindow && setupWindow->isWindowVisible()) { setupWindow->action(gcn::ActionEvent(nullptr, "cancel")); return true; @@ -299,7 +299,7 @@ impHandler0(nextSocialTab) impHandler0(scrollChatUp) { - if (chatWindow && chatWindow->isVisible()) + if (chatWindow && chatWindow->isWindowVisible()) { chatWindow->scroll(-DEFAULT_CHAT_WINDOW_SCROLL); return true; @@ -309,7 +309,7 @@ impHandler0(scrollChatUp) impHandler0(scrollChatDown) { - if (chatWindow && chatWindow->isVisible()) + if (chatWindow && chatWindow->isWindowVisible()) { chatWindow->scroll(DEFAULT_CHAT_WINDOW_SCROLL); return true; @@ -598,7 +598,7 @@ impHandler0(setupWindowShow) { if (setupWindow) { - if (setupWindow->isVisible()) + if (setupWindow->isWindowVisible()) { setupWindow->doCancel(); } @@ -672,7 +672,7 @@ impHandler0(helpWindowShow) { if (helpWindow) { - if (helpWindow->isVisible()) + if (helpWindow->isWindowVisible()) { helpWindow->setVisible(false); } @@ -690,8 +690,8 @@ static void showHideWindow(Window *const window) { if (window) { - window->setVisible(!window->isVisible()); - if (window->isVisible()) + window->setVisible(!window->isWindowVisible()); + if (window->isWindowVisible()) window->requestMoveToTop(); } } |