mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Ask whether to save existing project when creating a new
project from a template.
This commit is contained in:
parent
e71930fd45
commit
25915d7891
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user