Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/qgisapp.cpp
6 changes: 6 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3284,6 +3284,11 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )

bool QgisApp::fileNewFromTemplate( QString fileName )
{
if ( !saveDirty() )
{
return false; //cancel pressed
}

QgsDebugMsg( QString( "loading project template: %1" ).arg( fileName ) );
if ( addProject( fileName ) )
{
Expand Down Expand Up @@ -9560,3 +9565,4 @@ LONG WINAPI QgisApp::qgisCrashDump( struct _EXCEPTION_POINTERS *ExceptionInfo )
return EXCEPTION_EXECUTE_HANDLER;
}
#endif