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 at2f9322ewas undone at43b1afcbecause 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user