summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 18:17:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 18:17:50 +0300
commit4aeceabb5d4f00e2555234951a2f5db24b008265 (patch)
tree16e970611e7cc05352f18a9385b9e26c72d498d8 /src/actionmanager.cpp
parentdd4d44a07d3a63ced0eec51c30b75887792c4a36 (diff)
downloadplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.gz
plus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.bz2
plus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.xz
plus-4aeceabb5d4f00e2555234951a2f5db24b008265.zip
Improve perfomance in windows and popups visibility checks.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp16
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();
}
}