diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index 91c71640..f34527b8 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -275,6 +275,7 @@ namespace UniversalEditor.UserInterface NewDialog dlg = new NewDialog(); dlg.Mode = NewDialogMode.File; + if (dlg.ShowDialog() == DialogResult.OK) { iUntitledDocCount++; @@ -511,6 +512,7 @@ namespace UniversalEditor.UserInterface } return; } +#if !DEBUG catch (Exception ex) { if (!System.Diagnostics.Debugger.IsAttached) @@ -524,6 +526,7 @@ namespace UniversalEditor.UserInterface throw ex; } } +#endif } Editor editor = editors[0].Create();