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