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:
parent
79cb1f1bd9
commit
f5ded43d51
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue