m_currentView = (wxView *) NULL;
m_maxDocsOpen = 10000;
m_fileHistory = (wxFileHistory *) NULL;
+ m_lastDirectory = wxT("") ;
if (initialize)
Initialize();
}
int FilterIndex = 0;
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
- wxT(""),
+ m_lastDirectory,
wxT(""),
&FilterIndex,
descrBuf,
if (!pathTmp.IsEmpty())
{
+ m_lastDirectory = wxPathOnly(pathTmp);
+
path = pathTmp;
wxString theExt = FindExtension(path);
if (!theExt)