summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-04-07 18:50:38 +0000
committersr55 <[email protected]>2015-04-07 18:50:38 +0000
commit11d88373a0fadfa6321a3a85f28e00df88494d11 (patch)
treeadbe054d653ade7bb050d7b0857cfea3f562d3d4 /win/CS/HandBrakeWPF
parentedf2d4db1116457e8f14f4021896b38366434e17 (diff)
WinGui: Fix the copy mask list.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7069 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index c35d6d7de..4c9921459 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1520,9 +1520,10 @@ namespace HandBrakeWPF.ViewModels
if (this.CurrentTask != null && !string.IsNullOrEmpty(this.CurrentTask.Destination))
{
- saveFileDialog.InitialDirectory = Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination))
- ? Path.GetDirectoryName(this.CurrentTask.Destination) + "\\"
- : null;
+ if (Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination)))
+ {
+ saveFileDialog.InitialDirectory = Path.GetDirectoryName(this.CurrentTask.Destination);
+ }
saveFileDialog.FileName = Path.GetFileName(this.CurrentTask.Destination);
}