aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-10-30 18:23:03 +0100
committerjcid <devnull@localhost>2008-10-30 18:23:03 +0100
commit3309d5e5590c510f8518cb2cce4cd555df2211e5 (patch)
treed99f6109ee7cb6049b55a1dc7cd82eab53d4c668 /src/uicmd.cc
parente1cb964a74ed9477716ea200aefb530771512ec0 (diff)
- Reduced warnings with gcc-4.3.
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index e315417e..c093f73e 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -85,11 +85,12 @@ public:
void remove (Widget *w) {
TabGroup::remove (w);
/* fixup resizable in case we just removed it */
- if (resizable () == w)
+ if (resizable () == w) {
if (children () > 0)
resizable (child (children () - 1));
else
resizable (NULL);
+ }
if (children () < 2)
hideLabels ();