summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-03-30 21:18:01 +0000
committersr55 <[email protected]>2019-03-30 21:18:20 +0000
commit8c36b420a10b56fd0fadd8dab2387bea620dd4e1 (patch)
tree33ef3f643fc01288b8124d0cc2c17082e36eed0f /win
parentdd235f5b517cb7c3d59b53a9a5468349167d645c (diff)
WinGui: Minor queue bugfix for delete action
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index b250c1456..bdd2fd844 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -383,6 +383,11 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public void RemoveSelectedJobs()
{
+ if (this.SelectedItems.Count == 0)
+ {
+ return;
+ }
+
MessageBoxResult result =
this.errorService.ShowMessageBox(
Resources.QueueViewModel_DelSelectedJobConfirmation,