diff options
author | sr55 <[email protected]> | 2012-06-20 17:59:28 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-20 17:59:28 +0000 |
commit | 0ae91859da21ed913404ac5a890196a6995f515b (patch) | |
tree | f5d2ca9ff367474f49f0fafd00671815013d9be8 /win | |
parent | 0526951c3fb10bbdd62150165fc1daf2f72e25cc (diff) |
WinGui: - Fixed an incorrect method call in the last checkin.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4761 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 |
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);
}
}
|