Skip to content
Permalink
Browse files

Remove autogenerated metadata when loading an older project

  • Loading branch information
nyalldawson committed Mar 21, 2018
1 parent 37c5dd9 commit 6b1255b4d92d1db834bdcf49936fde2d819a506d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsproject.cpp
@@ -985,6 +985,11 @@ bool QgsProject::readProjectFile( const QString &filename )
QDomElement metadataElement = nl.at( 0 ).toElement();
mMetadata.readMetadataXml( metadataElement );
}
else
{
// older project, no metadata => remove auto generated metadata which is populated on QgsProject::clear()
mMetadata = QgsProjectMetadata();
}
if ( mMetadata.title().isEmpty() && !oldTitle.isEmpty() )
{
// upgrade older title storage to storing within project metadata.

0 comments on commit 6b1255b

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