diff options
author | sr55 <[email protected]> | 2014-02-17 20:30:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-02-17 20:30:04 +0000 |
commit | 6ac0f1f45d334382b62605db96ea45a81d773aa6 (patch) | |
tree | 2d436f808b7961af3343838ebd36399b865592a6 /win/CS/HandBrakeWPF/ViewModels | |
parent | d4327b0f304b99a7650b12622b48e6145794ab65 (diff) |
WinGui: Show a error message when the user has no destination set.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6037 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index d5d02a0f8..aa60adf68 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1135,7 +1135,14 @@ namespace HandBrakeWPF.ViewModels return;
}
+ if (string.IsNullOrEmpty(this.CurrentTask.Destination))
+ {
+ this.errorService.ShowMessageBox(Resources.Main_SetDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
+ }
+
QueueTask task = new QueueTask(new EncodeTask(this.CurrentTask), HBConfigurationFactory.Create());
+
+
if (!this.queueProcessor.CheckForDestinationPathDuplicates(task.Task.Destination))
{
this.queueProcessor.Add(task);
|