From f5ded43d5199fea5c2e1160421f30cf6c4212ad8 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Tue, 24 Jun 2008 20:31:23 +0000 Subject: [PATCH] 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. --- aegisub/frame_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/frame_main.cpp b/aegisub/frame_main.cpp index ff45b9beb..3bad2217d 100644 --- a/aegisub/frame_main.cpp +++ b/aegisub/frame_main.cpp @@ -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);