aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
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 ();