Song: reset window title after creating new project from template

Reset window title when creating new project from template (after
actually loading template file). Furthermore do not reset window title
at the beginning of load process anymore.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit cf0a91637b)
This commit is contained in:
Tobias Doerffel
2009-06-18 22:24:25 +02:00
parent 0faaab4521
commit 621512a7b7

View File

@@ -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