summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-01-25 20:35:43 +0000
committersr55 <[email protected]>2019-01-27 20:46:41 +0000
commit95c21515907b14f2845c5e060ebc9d6a4023b5df (patch)
tree05a5918e047508a77ff660a70e6d275192862723 /win/CS/HandBrakeWPF/ViewModels
parent0b875521908a9298ab2b2e2cd7f9ca13b0ee856f (diff)
WinGui: Adding some additional validation to the destination box.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index fbb241ea2..9d07343a7 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -582,6 +582,13 @@ namespace HandBrakeWPF.ViewModels
this.errorService.ShowMessageBox(Resources.Main_InvalidDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
+
+ if (value == this.ScannedSource.ScanPath)
+ {
+ this.Destination = null;
+ this.errorService.ShowMessageBox(Resources.Main_SourceDestinationMatchError, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
+ return;
+ }
}
catch (Exception exc)
{