Applied Harukalover's patch for remembering last subtitle open directory also for files opened from commandline or drag/drop, bug #722.

Originally committed to SVN as r2212.
This commit is contained in:
Niels Martin Hansen 2008-06-24 20:31:23 +00:00
parent 79cb1f1bd9
commit f5ded43d51

View file

@ -633,6 +633,7 @@ void FrameMain::LoadSubtitles (wxString filename,wxString charset) {
wxString cur = testSubs.ReadLineFromFile();
if (cur.Left(10) == _T("# timecode")) {
LoadVFR(filename);
Options.SetText(_T("Last open timecodes path"), fileCheck.GetPath());
return;
}
}
@ -646,6 +647,7 @@ void FrameMain::LoadSubtitles (wxString filename,wxString charset) {
SubsBox->LoadFromAss(AssFile::top,false,true);
wxFileName fn(filename);
StandardPaths::SetPathValue(_T("?script"),fn.GetPath());
Options.SetText(_T("Last open subtitles path"), fn.GetPath());
}
else {
SubsBox->LoadDefault(AssFile::top);