summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-20 17:48:38 +0000
committersr55 <[email protected]>2012-06-20 17:48:38 +0000
commit0526951c3fb10bbdd62150165fc1daf2f72e25cc (patch)
tree54233692b8fe6f7d315b1dd90bd999e2fb79ff94 /win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
parent28ff9e210e2604c47c5f157043aa85d4d56b6a16 (diff)
WinGui: - Another fix to the Subtitles panel.
- Try Default the Destination Browse window to the currently set path. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4760 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 9a2fc5a00..fa88c8e24 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1135,8 +1135,16 @@ namespace HandBrakeWPF.ViewModels
Filter = "mp4|*.mp4;*.m4v|mkv|*.mkv",
AddExtension = true,
OverwritePrompt = true,
- DefaultExt = ".mp4"
+ DefaultExt = ".mp4",
};
+ if (this.CurrentTask != null && !string.IsNullOrEmpty(this.CurrentTask.Destination))
+ {
+ if (Directory.Exists(Path.GetFullPath(this.CurrentTask.Destination)))
+ {
+ dialog.InitialDirectory = Path.GetFullPath(this.CurrentTask.Destination);
+ }
+ }
+
dialog.ShowDialog();
if (!string.IsNullOrEmpty(dialog.FileName))