Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc
index 4812b1f..709731e 100644
--- a/src/ui/widget.cc
+++ b/src/ui/widget.cc
@@ -153,7 +153,7 @@ void Widget::hide()
Widget *sibling = next_sibling();
- while (sibling && ((sibling == this) || !sibling->visible())) {
+ while (sibling && (sibling != this) && !sibling->visible()) {
sibling = sibling->next_sibling();
}
if (sibling)
@@ -289,9 +289,9 @@ Widget *Widget::next_sibling()
return 0;
}
- // find this widget in the parent's children
+ // find this widget in the parent's children
Children::iterator it = parent()->children().begin();
- while (it != parent()->children().end() && (*it) != this) {
+ while (it != parent()->children().end() && ((*it) != this)) {
it++;
}