summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-12-20 23:25:39 +0000
committersr55 <[email protected]>2019-12-20 23:26:55 +0000
commit9386fe9a858d9f5254518c12b8bf605a9c9141a3 (patch)
tree0f4c07393f5e65e2113546f7a135ab1034769477 /win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
parent0b24756021755f92d12c4cf4f106d556121762df (diff)
WinGui: Change the invalid path errors from an Exception Window to a standard Error Message Box. Fixes #2518
(cherry picked from commit ca6820cc7402af9cd3d898622fcde35ad4bb0827)
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-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)
{