1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

rename function as AudacityProject::GetProjectName...

... So it does not hide inherited wxWindow::GetName().

And make it const.
This commit is contained in:
Paul Licameli
2019-04-21 17:33:18 -04:00
parent 8f55d55869
commit c46fbd919c
8 changed files with 14 additions and 14 deletions

View File

@@ -46,11 +46,11 @@ const wxSize gSize = wxSize(LYRICS_DEFAULT_WIDTH, LYRICS_DEFAULT_HEIGHT);
LyricsWindow::LyricsWindow(AudacityProject *parent):
wxFrame(parent, -1,
wxString::Format(_("Audacity Karaoke%s"),
((parent->GetName().empty()) ?
((parent->GetProjectName().empty()) ?
wxT("") :
wxString::Format(
wxT(" - %s"),
parent->GetName()))),
parent->GetProjectName()))),
wxPoint(100, 300), gSize,
//v Bug in wxFRAME_FLOAT_ON_PARENT:
// If both the project frame and LyricsWindow are minimized and you restore LyricsWindow,