From cf0a91637b6a8ed1010aee182dd729b55eb38607 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 18 Jun 2009 22:24:25 +0200 Subject: [PATCH] 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 --- src/core/song.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 05de06f46..17cb3e353 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -852,6 +852,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(); + } + } @@ -878,11 +884,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