From: sr55 Date: Wed, 20 Jun 2012 17:59:28 +0000 (+0000) Subject: WinGui: - Fixed an incorrect method call in the last checkin. X-Git-Tag: 0.9.9~550 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ae91859da21ed913404ac5a890196a6995f515b;p=handbrake 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 --- 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); } }