Skip to content

Commit

Permalink
Merge pull request #1258 from grindhold/brokenproject
Browse files Browse the repository at this point in the history
attempt to open broken project does not clear currently open project
  • Loading branch information
diizy committed Nov 8, 2014
2 parents d10eecb + f67e363 commit 2c7036e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,6 @@ void song::loadProject( const QString & _file_name )

m_loadingProject = true;

clearProject();

engine::projectJournal()->setJournalling( false );

m_fileName = _file_name;
Expand All @@ -894,10 +892,11 @@ void song::loadProject( const QString & _file_name )
// new project
if( dataFile.head().isNull() )
{
createNewProject();
return;
}

clearProject();

DataFile::LocaleHelper localeHelper( DataFile::LocaleHelper::ModeLoad );

engine::mixer()->lock();
Expand Down

0 comments on commit 2c7036e

Please sign in to comment.