wxFileDialog expects a file name rather than a path (Jairo Grateron)

This commit is contained in:
Zane U. Ji 2019-08-14 21:26:30 +08:00
parent f337034944
commit da26cfb14f
1 changed files with 1 additions and 1 deletions

View File

@ -3570,7 +3570,7 @@ void MyFrame::saveAs()
return; return;
wxString defaultFile, defaultDir; wxString defaultFile, defaultDir;
defaultFile = doc->getFullFileName(); defaultFile = doc->getShortFileName();
defaultDir = doc->getDirectory(); defaultDir = doc->getDirectory();
if ( defaultDir.empty() ) if ( defaultDir.empty() )
defaultDir = mLastDir; defaultDir = mLastDir;