Only catch exceptions with CrashDialog if in release mode

This commit is contained in:
Michael Becker 2014-10-16 12:06:16 -04:00
parent bfcce47c69
commit 5d46fe225b

View File

@ -317,14 +317,18 @@ namespace UniversalEditor.UserInterface
mvarCurrentEngine = engines[0];
}
#if !DEBUG
try
{
#endif
mvarCurrentEngine.StartApplication();
#if !DEBUG
}
catch (Exception ex)
{
mvarCurrentEngine.ShowCrashDialog(ex);
}
#endif
return true;
}