1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Fix windows crash at startup, again...

... The fix done at 2f9322e was undone at 43b1afc because of the unacceptable
file dependencies.  This fixes it by other means.  Make a null check in
SetProjectTitle in case it is invoked before ProjectWindow has been constructed;
also ensure in ProjectManager::New that it is called at least once after that.
This commit is contained in:
Paul Licameli
2019-06-10 11:40:30 -04:00
parent c5a1dad275
commit bb7964122e
2 changed files with 6 additions and 1 deletions

View File

@@ -103,7 +103,10 @@ void ProjectFileIO::UpdatePrefs()
void ProjectFileIO::SetProjectTitle( int number)
{
auto &project = mProject;
auto &window = GetProjectFrame( project );
auto pWindow = project.GetFrame();
if ( !pWindow )
return;
auto &window = *pWindow;
wxString name = project.GetProjectName();
// If we are showing project numbers, then we also explicitly show "<untitled>" if there