diff options
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index 3d26296fd..fb8dc838c 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -244,6 +244,15 @@ namespace HandBrakeWPF.ViewModels Multiselect = true
};
+ if (this.Task != null && this.Task.Source != null)
+ {
+ string path = Path.GetDirectoryName(this.Task.Source);
+ if (Directory.Exists(path))
+ {
+ dialog.InitialDirectory = path;
+ }
+ }
+
dialog.ShowDialog();
this.AddInputSubtitles(dialog.FileNames);
|