From d037b9d2ed2f92b8d8babf450adc01ae360c02b4 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 18 Aug 2014 22:01:41 +0200 Subject: [PATCH] DataFile: also update meta data when upgrading XML document --- src/core/DataFile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/DataFile.cpp b/src/core/DataFile.cpp index 8992d592a..39be0e4bc 100644 --- a/src/core/DataFile.cpp +++ b/src/core/DataFile.cpp @@ -683,6 +683,12 @@ void DataFile::upgrade() } + // update document meta data + documentElement().setAttribute( "version", LDF_VERSION_STRING ); + documentElement().setAttribute( "type", typeName( type() ) ); + documentElement().setAttribute( "creator", "LMMS" ); + documentElement().setAttribute( "creatorversion", LMMS_VERSION ); + // Time-signature if ( !m_head.hasAttribute( "timesig_numerator" ) ) {