mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-08 00:02:35 -05:00
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:
parent
200c871c24
commit
8663011287
@ -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 ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user