diff --git a/src/core/song.cpp b/src/core/song.cpp index 600391d6d..1ea97b196 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -849,6 +849,12 @@ void song::createNewProjectFromTemplate( const QString & _template ) // clear file-name so that user doesn't overwrite template when // saving... m_fileName = m_oldFileName = ""; + // update window title + if( engine::getMainWindow() ) + { + engine::getMainWindow()->resetWindowTitle(); + } + } @@ -875,11 +881,6 @@ void song::loadProject( const QString & _file_name ) return; } - if( engine::getMainWindow() ) - { - engine::getMainWindow()->resetWindowTitle(); - } - engine::getMixer()->lock(); // get the header information from the DOM