Ensure schematic autosave works if sheet path is invalid
This commit is contained in:
parent
a7ea63e610
commit
a484d10470
|
@ -850,7 +850,10 @@ bool SCH_EDIT_FRAME::doAutoSave()
|
||||||
|
|
||||||
bool autoSaveOk = true;
|
bool autoSaveOk = true;
|
||||||
|
|
||||||
tmp.AssignDir( fn.GetPath() );
|
if( fn.GetPath().IsEmpty() )
|
||||||
|
tmp.AssignDir( Prj().GetProjectPath() );
|
||||||
|
else
|
||||||
|
tmp.AssignDir( fn.GetPath() );
|
||||||
|
|
||||||
if( !tmp.IsOk() )
|
if( !tmp.IsOk() )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue