SaveAs must actually change the name of the document.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14281
This commit is contained in:
Jeff Young 2023-10-28 22:09:06 +01:00
parent 84d42a2669
commit 72c44d7fa3
1 changed files with 3 additions and 4 deletions

View File

@ -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;