don't catch just any exception while debugging since this screws up the call stack trace
This commit is contained in:
parent
c7303da998
commit
9cdb8bb42b
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user