Skip to content
Permalink
Browse files

Merge pull request #1305 from manisandro/save_on_new_from_template

Ask whether to save existing project when creating a new project from a template
  • Loading branch information
mhugent committed Apr 10, 2014
2 parents 5f19830 + 25915d7 commit a1f1b94af4a322dc326fbecbf0fd8d4405333a7f
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/qgisapp.cpp
@@ -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 ) )
{
@@ -9560,3 +9565,4 @@ LONG WINAPI QgisApp::qgisCrashDump( struct _EXCEPTION_POINTERS *ExceptionInfo )
return EXCEPTION_EXECUTE_HANDLER;
}
#endif

0 comments on commit a1f1b94

Please sign in to comment.
You can’t perform that action at this time.