summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs14
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>