Don't mark projects created from a template as immediately dirty

Creating a new project from a template shouldn't prompt users to
save it if they immediately close the new project without changes
This commit is contained in:
Nyall Dawson 2019-06-24 08:25:52 +10:00
parent 200c871c24
commit 8663011287

View File

@ -5573,6 +5573,7 @@ bool QgisApp::fileNewFromTemplate( const QString &fileName )
return false; //cancel pressed
}
MAYBE_UNUSED QgsProjectDirtyBlocker dirtyBlocker( QgsProject::instance() );
QgsDebugMsg( QStringLiteral( "loading project template: %1" ).arg( fileName ) );
if ( addProject( fileName ) )
{