summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index fa88c8e24..25dad1d4f 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1137,11 +1137,13 @@ namespace HandBrakeWPF.ViewModels
OverwritePrompt = true,
DefaultExt = ".mp4",
};
+
if (this.CurrentTask != null && !string.IsNullOrEmpty(this.CurrentTask.Destination))
{
- if (Directory.Exists(Path.GetFullPath(this.CurrentTask.Destination)))
+ if (Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination)))
{
- dialog.InitialDirectory = Path.GetFullPath(this.CurrentTask.Destination);
+ dialog.InitialDirectory = Path.GetDirectoryName(this.CurrentTask.Destination) + "\\";
+ dialog.FileName = Path.GetFileName(this.CurrentTask.Destination);
}
}