|
@@ -748,6 +748,9 @@ namespace Terminal.Gui {
|
|
|
view.SetNeedsDisplay ();
|
|
|
}
|
|
|
OnRemoved (view);
|
|
|
+ if (focused == view) {
|
|
|
+ focused = null;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void PerformActionForSubview (View subview, Action<View> action)
|
|
@@ -1882,9 +1885,6 @@ namespace Terminal.Gui {
|
|
|
Remove (subview);
|
|
|
subview.Dispose ();
|
|
|
}
|
|
|
- if (Application.Top.focused == this) {
|
|
|
- Application.Top.focused = null;
|
|
|
- }
|
|
|
base.Dispose (disposing);
|
|
|
}
|
|
|
|