"horizontal split pane");
}
if (left == null) {
- remove(this.left);
+ if (this.left != null) {
+ remove(this.left);
+ }
this.left = null;
return;
}
"horizontal split pane");
}
if (right == null) {
- remove(this.right);
+ if (this.right != null) {
+ remove(this.right);
+ }
this.right = null;
return;
}
"split pane");
}
if (top == null) {
- remove(this.top);
+ if (this.top != null) {
+ remove(this.top);
+ }
this.top = null;
return;
}
"vertical split pane");
}
if (bottom == null) {
- remove(this.bottom);
+ if (this.bottom != null) {
+ remove(this.bottom);
+ }
this.bottom = null;
return;
}
// Remove me from my parent widget.
TWidget newParent = getParent();
- setParent(null, false);
+ remove(false);
if (keep == null) {
// Nothing is left of either pane. Remove me and bail out.