Skip to content
Permalink
Browse files
Save qgz without qgd if the auxiliary database is empty
  • Loading branch information
pblottiere committed Jun 15, 2021
1 parent bf63165 commit 112fa385ef6c7b8997c58f9634c680899c746490
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/core/project/qgsproject.cpp
@@ -3365,7 +3365,12 @@ bool QgsProject::zip( const QString &filename )
}
else
{
archive->addFile( asFileName );
// in this case, an empty filename means that the auxiliary database is
// empty, so we don't want to save it
if ( QFile::exists( asFileName ) )
{
archive->addFile( asFileName );
}
}

// create the archive
@@ -3560,7 +3565,7 @@ bool QgsProject::saveAuxiliaryStorage( const QString &filename )
}
}

if ( !mAuxiliaryStorage->exists( *this ) && filename.isEmpty() && empty )
if ( !mAuxiliaryStorage->exists( *this ) && empty )
{
return true; // it's not an error
}

0 comments on commit 112fa38

Please sign in to comment.