summaryrefslogtreecommitdiff
path: root/src/gui
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 /src/gui
parenteb0a7b37c54cba78267b137e7ecd09bb777affc5 (diff)
downloadmanaverse-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.gz
manaverse-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.bz2
manaverse-fa69d82536fbe9b9b7763ae8a106f59757bec116.tar.xz
manaverse-fa69d82536fbe9b9b7763ae8a106f59757bec116.zip
Improve logic handling speed in gui.
Diffstat (limited to 'src/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")
}