summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.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/gui/chatwindow.cpp
parentdd4d44a07d3a63ced0eec51c30b75887792c4a36 (diff)
downloadmanaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.gz
manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.bz2
manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.xz
manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.zip
Improve perfomance in windows and popups visibility checks.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 88c9936fe..c375b6748 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -575,7 +575,7 @@ void ChatWindow::action(const gcn::ActionEvent &event)
bool ChatWindow::requestChatFocus()
{
// Make sure chatWindow is visible
- if (!isVisible())
+ if (!isWindowVisible())
{
setVisible(true);
@@ -721,7 +721,7 @@ void ChatWindow::doPresent() const
void ChatWindow::scroll(const int amount) const
{
- if (!isVisible())
+ if (!isWindowVisible())
return;
ChatTab *const tab = getFocused();