diff --git a/src/core/song.cpp b/src/core/song.cpp index 7a237e3d3..ceb2510c7 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -788,7 +788,10 @@ void song::createNewProject( void ) m_loadingProject = FALSE; m_modified = FALSE; - engine::getMainWindow()->resetWindowTitle(); + if( engine::getMainWindow() ) + { + engine::getMainWindow()->resetWindowTitle(); + } } @@ -912,7 +915,10 @@ void song::loadProject( const QString & _file_name ) m_loadingProject = FALSE; m_modified = FALSE; - engine::getMainWindow()->resetWindowTitle(); + if( engine::getMainWindow() ) + { + engine::getMainWindow()->resetWindowTitle(); + } }