From fa69d82536fbe9b9b7763ae8a106f59757bec116 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Mar 2014 18:13:10 +0300 Subject: Improve logic handling speed in gui. --- src/gui/widgets/basiccontainer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/widgets/basiccontainer.cpp') 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") } -- cgit v1.2.3-70-g09d2