SuperView could be null too in the case of for ex dialog

This commit is contained in:
Paul Sanford
2018-05-21 11:14:35 -07:00
parent 167e12759f
commit 80a888735f

View File

@@ -382,7 +382,7 @@ namespace Terminal.Gui {
selected = -1;
SetNeedsDisplay ();
SuperView.Remove (openMenu);
previousFocused?.SuperView.SetFocus (previousFocused);
previousFocused?.SuperView?.SetFocus (previousFocused);
openMenu = null;
}