summaryrefslogtreecommitdiff
path: root/src/guichan/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/include')
-rw-r--r--src/guichan/include/guichan/widget.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guichan/include/guichan/widget.hpp b/src/guichan/include/guichan/widget.hpp
index 4d43b5460..f4429dbee 100644
--- a/src/guichan/include/guichan/widget.hpp
+++ b/src/guichan/include/guichan/widget.hpp
@@ -367,7 +367,8 @@ namespace gcn
* @see setVisible
* @since 0.1.0
*/
- bool isVisible() const;
+ bool isVisible() const
+ { return mVisible && (!mParent || mParent->isVisible()); }
/**
* Sets the base color of the widget.