summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-04 15:18:20 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-04 15:18:20 -0700
commit91af32bac65b20a446f2e49f023d3d526729e8ea (patch)
treed7ecbe69c57f391924781814002dbe4762ad1d29 /src/gui/widgets
parentdfbb70d4884c4e48664f1df7bf73819a00a707b7 (diff)
downloadmana-91af32bac65b20a446f2e49f023d3d526729e8ea.tar.gz
mana-91af32bac65b20a446f2e49f023d3d526729e8ea.tar.bz2
mana-91af32bac65b20a446f2e49f023d3d526729e8ea.tar.xz
mana-91af32bac65b20a446f2e49f023d3d526729e8ea.zip
Don't process redudant visibility calls in Window
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index e36aea97..8d7b442b 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -314,6 +314,9 @@ void Window::setVisible(bool visible)
void Window::setVisible(bool visible, bool forceSticky)
{
+ if (visible == isVisible())
+ return; // Nothing to do
+
// Check if the window is off screen...
if (visible)
checkIfIsOffScreen();