diff options
author | sr55 <[email protected]> | 2013-08-11 17:19:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-08-11 17:19:41 +0000 |
commit | 300fe7c36ddff80d4380310d4387f695091fb5a7 (patch) | |
tree | b19b978ec841ea9cf5f71949774a27dd96a5e9ce /win/CS | |
parent | e9d1e1af56ca8ba9d8139020fd38f5dfdf2e1d4e (diff) |
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
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 14 |
1 files changed, 8 insertions, 6 deletions
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);
+ }
}
/// <summary>
@@ -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);
+ }
}
/// <summary>
|