From 8c36b420a10b56fd0fadd8dab2387bea620dd4e1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 30 Mar 2019 21:18:01 +0000 Subject: WinGui: Minor queue bugfix for delete action --- win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) 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 /// public void RemoveSelectedJobs() { + if (this.SelectedItems.Count == 0) + { + return; + } + MessageBoxResult result = this.errorService.ShowMessageBox( Resources.QueueViewModel_DelSelectedJobConfirmation, -- cgit v1.2.3