7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 19:39:35 +00:00

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

View File

@ -214,14 +214,13 @@ void PL_EDITOR_FRAME::Files_io( wxCommandEvent& event )
msg.Printf( _( "Failed to create file '%s'." ), filename );
DisplayErrorMessage( this, msg );
}
else
{
msg.Printf( _("File \"%s\" saved."), filename );
msg.Printf( _( "File '%s' saved." ), filename );
SetStatusText( msg );
if( GetCurrentFileName().IsEmpty() )
SetCurrentFileName( filename );
SetCurrentFileName( filename );
UpdateTitleAndInfo();
}
}
break;