When a new project is created, default to setting the metadata

author to the current logged on user name
This commit is contained in:
Nyall Dawson 2018-03-20 09:47:03 +10:00
parent f435f62364
commit 288bb1a872

View File

@ -511,6 +511,7 @@ void QgsProject::clear()
mCustomVariables.clear();
mMetadata = QgsProjectMetadata();
mMetadata.setCreationDateTime( QDateTime::currentDateTime() );
mMetadata.setAuthor( QgsApplication::userFullName() );
emit metadataChanged();
QgsCoordinateTransformContext context;