]> granicus.if.org Git - handbrake/commitdiff
WinGui: - Fixed an incorrect method call in the last checkin.
authorsr55 <sr55.hb@outlook.com>
Wed, 20 Jun 2012 17:59:28 +0000 (17:59 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 20 Jun 2012 17:59:28 +0000 (17:59 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4761 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index fa88c8e24ee4487648a1b121370396eba2238eb4..25dad1d4f9a2e8fa12a6fb10c55d6cc3a2afa2a9 100644 (file)
@@ -1137,11 +1137,13 @@ namespace HandBrakeWPF.ViewModels
                     OverwritePrompt = true,\r
                     DefaultExt = ".mp4",\r
                 };\r
+\r
             if (this.CurrentTask != null && !string.IsNullOrEmpty(this.CurrentTask.Destination))\r
             {\r
-                if (Directory.Exists(Path.GetFullPath(this.CurrentTask.Destination)))\r
+                if (Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination)))\r
                 {\r
-                    dialog.InitialDirectory = Path.GetFullPath(this.CurrentTask.Destination);\r
+                    dialog.InitialDirectory = Path.GetDirectoryName(this.CurrentTask.Destination) + "\\";\r
+                    dialog.FileName = Path.GetFileName(this.CurrentTask.Destination);\r
                 }\r
             }\r
 \r