From 300fe7c36ddff80d4380310d4387f695091fb5a7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 11 Aug 2013 17:19:41 +0000 Subject: WinGui: Fix an issue with Queue Import/Export that didn't obey the Ok/Cancel buttons. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5696 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels') diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index a6ccfd606..972c46d94 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -319,9 +319,10 @@ namespace HandBrakeWPF.ViewModels DefaultExt = ".hbq", AddExtension = true }; - dialog.ShowDialog(); - - this.queueProcessor.BackupQueue(dialog.FileName); + if (dialog.ShowDialog() == true) + { + this.queueProcessor.BackupQueue(dialog.FileName); + } } /// @@ -330,9 +331,10 @@ namespace HandBrakeWPF.ViewModels public void Import() { VistaOpenFileDialog dialog = new VistaOpenFileDialog { Filter = "HandBrake Queue Files (*.hbq)|*.hbq", CheckFileExists = true }; - dialog.ShowDialog(); - - this.queueProcessor.RestoreQueue(dialog.FileName); + if (dialog.ShowDialog() == true) + { + this.queueProcessor.RestoreQueue(dialog.FileName); + } } /// -- cgit v1.2.3