diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-17 18:13:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-17 18:13:10 +0300 |
commit | fa69d82536fbe9b9b7763ae8a106f59757bec116 (patch) | |
tree | 0eeb9196f60bcde8d3550b8ec1573cae980260d8 /src/gui/widgets/basiccontainer.cpp | |
parent | eb0a7b37c54cba78267b137e7ecd09bb777affc5 (diff) | |
download | manaverse-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/widgets/basiccontainer.cpp')
-rw-r--r-- | src/gui/widgets/basiccontainer.cpp | 5 |
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") } |