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/gui/whoisonline.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/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 6a5ae8f70..b280ae4f8 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -607,7 +607,7 @@ void WhoIsOnline::slowLogic() mUpdateTimer = cur_time; double timeDiff = difftime(cur_time, mUpdateTimer); - int timeLimit = isVisible() ? 20 : 120; + int timeLimit = isWindowVisible() ? 20 : 120; if (mUpdateOnlineList && timeDiff >= timeLimit && mDownloadStatus != UPDATE_LIST) |