don't catch just any exception while debugging since this screws up the call stack trace

This commit is contained in:
Michael Becker 2020-03-19 10:58:32 -04:00
parent c7303da998
commit 9cdb8bb42b
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -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();