Updated title when the file name changed
This commit is contained in:
parent
9826820285
commit
cff6fb4256
|
@ -3617,10 +3617,14 @@ void MyFrame::saveAs()
|
|||
history.AddFileToHistory ( path ); // update history
|
||||
updateFileMenu();
|
||||
|
||||
int selection;
|
||||
if ( ( selection = mainBook->GetSelection() ) == -1 )
|
||||
return;
|
||||
mainBook->SetPageText ( selection, name );
|
||||
int selection = mainBook->GetSelection();
|
||||
if ( selection != -1 )
|
||||
mainBook->SetPageText ( selection, name );
|
||||
|
||||
wxString title = showFullPathOnFrame ? path : name;
|
||||
title += _T ( " - " );
|
||||
title += _ ( "XML Copy Editor" );
|
||||
SetTitle ( title );
|
||||
}
|
||||
|
||||
void MyFrame::OnUpdateCloseAll ( wxUpdateUIEvent& event )
|
||||
|
|
Loading…
Reference in New Issue