We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90eac0f commit 0a971c3Copy full SHA for 0a971c3
src/mapserver/qgsconfigcache.cpp
@@ -18,6 +18,7 @@
18
#include "qgsconfigcache.h"
19
#include "qgslogger.h"
20
#include "qgsmslayercache.h"
21
+#include "qgsprojectfiletransform.h"
22
#include "qgsprojectparser.h"
23
#include "qgssldparser.h"
24
#include <QCoreApplication>
@@ -115,6 +116,9 @@ QgsConfigParser* QgsConfigCache::insertConfiguration( const QString& filePath )
115
116
}
117
else if ( documentElem.tagName() == "qgis" )
118
{
119
+ //convert project file to current version first
120
+ QgsProjectFileTransform pt( *configDoc, QgsProjectVersion( documentElem.attribute( "version" ) ) );
121
+ pt.updateRevision( QgsProjectVersion( QGis::QGIS_VERSION ) );
122
configParser = new QgsProjectParser( configDoc, filePath );
123
124
else
0 commit comments