summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-12-20 23:25:39 +0000
committersr55 <[email protected]>2019-12-20 23:25:39 +0000
commitca6820cc7402af9cd3d898622fcde35ad4bb0827 (patch)
tree3daf2ea9d7a01439becac359a6bcce504b06b69c
parenta86154319df1a3ce4792d7b642f5f01b76e19786 (diff)
WinGui: Change the invalid path errors from an Exception Window to a standard Error Message Box. Fixes #2518
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 92c9c53e5..912f8857d 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -592,7 +592,6 @@ namespace HandBrakeWPF.ViewModels
string ext = string.Empty;
try
{
- ext = Path.GetExtension(value);
if (FileHelper.FilePathHasInvalidChars(value))
{
this.errorService.ShowMessageBox(Resources.Main_InvalidDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
@@ -604,6 +603,8 @@ namespace HandBrakeWPF.ViewModels
this.errorService.ShowMessageBox(Resources.Main_MatchingFileOverwriteWarning, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
+
+ ext = Path.GetExtension(value);
}
catch (Exception exc)
{