SaveAs must actually change the name of the document.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14281
This commit is contained in:
parent
84d42a2669
commit
72c44d7fa3
|
@ -214,14 +214,13 @@ void PL_EDITOR_FRAME::Files_io( wxCommandEvent& event )
|
||||||
msg.Printf( _( "Failed to create file '%s'." ), filename );
|
msg.Printf( _( "Failed to create file '%s'." ), filename );
|
||||||
DisplayErrorMessage( this, msg );
|
DisplayErrorMessage( this, msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _("File \"%s\" saved."), filename );
|
msg.Printf( _( "File '%s' saved." ), filename );
|
||||||
SetStatusText( msg );
|
SetStatusText( msg );
|
||||||
|
|
||||||
if( GetCurrentFileName().IsEmpty() )
|
SetCurrentFileName( filename );
|
||||||
SetCurrentFileName( filename );
|
UpdateTitleAndInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue