diff --git a/src/core/main.cpp b/src/core/main.cpp index 01d20a30b..090f032ef 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -1,7 +1,7 @@ /* * main.cpp - just main.cpp which is starting up app... * - * Copyright (c) 2004-2010 Tobias Doerffel + * Copyright (c) 2004-2011 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -435,7 +435,14 @@ int main( int argc, char * * argv ) { engine::mainWindow()->showMaximized(); } - engine::getSong()->loadProject( file_to_load ); + if( file_to_load == recoveryFile ) + { + engine::getSong()->createNewProjectFromTemplate( file_to_load ); + } + else + { + engine::getSong()->loadProject( file_to_load ); + } } else if( !file_to_import.isEmpty() ) {