From 0ae91859da21ed913404ac5a890196a6995f515b Mon Sep 17 00:00:00 2001 From: sr55 <sr55.hb@outlook.com> Date: Wed, 20 Jun 2012 17:59:28 +0000 Subject: [PATCH] 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 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 ++++-- 1 file 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); } } -- 2.40.0