summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-17 18:13:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-17 18:13:10 +0300
commitfa69d82536fbe9b9b7763ae8a106f59757bec116 (patch)
tree0eeb9196f60bcde8d3550b8ec1573cae980260d8
parenteb0a7b37c54cba78267b137e7ecd09bb777affc5 (diff)
downloadplus-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.gz
plus-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.bz2
plus-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.xz
plus-fa69d82536fbe9b9b7763ae8a106f59757bec116.zip
Improve logic handling speed in gui.
-rw-r--r--src/gui/widgets/basiccontainer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/basiccontainer.cpp b/src/gui/widgets/basiccontainer.cpp
index 60c6ac336..f6c5f030d 100644
--- a/src/gui/widgets/basiccontainer.cpp
+++ b/src/gui/widgets/basiccontainer.cpp
@@ -218,6 +218,11 @@ Widget *BasicContainer::getWidgetAt(int x, int y)
void BasicContainer::logic()
{
BLOCK_START("BasicContainer::logic")
+ if (!mVisible)
+ {
+ BLOCK_END("BasicContainer::logic")
+ return;
+ }
logicChildren();
BLOCK_END("BasicContainer::logic")
}