We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 37c5dd9 commit 6b1255bCopy full SHA for 6b1255b
src/core/qgsproject.cpp
@@ -985,6 +985,11 @@ bool QgsProject::readProjectFile( const QString &filename )
985
QDomElement metadataElement = nl.at( 0 ).toElement();
986
mMetadata.readMetadataXml( metadataElement );
987
}
988
+ else
989
+ {
990
+ // older project, no metadata => remove auto generated metadata which is populated on QgsProject::clear()
991
+ mMetadata = QgsProjectMetadata();
992
+ }
993
if ( mMetadata.title().isEmpty() && !oldTitle.isEmpty() )
994
{
995
// upgrade older title storage to storing within project metadata.
0 commit comments