diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index e1c8fccb7..abcf289e5 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -201,7 +201,12 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void Clear()
{
- this.queueProcessor.QueueManager.Clear();
+ MessageBoxResult result = this.errorService.ShowMessageBox(
+ "Are you sure you wish to clear the queue?", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (result == MessageBoxResult.Yes)
+ {
+ this.queueProcessor.QueueManager.Clear();
+ }
}
/// <summary>
|