diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 19191fc..b58f043 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -824,17 +824,18 @@ namespace EduNetworkBuilder if (answer == DialogResult.Yes) { + KillAllExtraWindows(true); ListBoxWindow LBW = new ListBoxWindow(); LBW.ShowDialog(); } } - void KillAllExtraWindows() + void KillAllExtraWindows(bool EvenRTF=false) { for(int i = Application.OpenForms.Count -1; i >=0; i--) { if (Application.OpenForms[i].Name == "BuilderWindow") continue; //We do not kill the builder window - if (Application.OpenForms[i].Name == "RTFWindow") continue; //We do not kill the rtf window + if (EvenRTF && Application.OpenForms[i].Name == "RTFWindow") continue; //We do not kill the rtf window Application.OpenForms[i].Hide(); //make them disappear Application.OpenForms[i].Close(); //actually close them }