wxFileDialog expects a file name rather than a path (Jairo Grateron)
This commit is contained in:
parent
f337034944
commit
da26cfb14f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue