Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Automatically update project files in qgis server
  • Loading branch information
mhugent committed Jan 17, 2013
1 parent 90eac0f commit 0a971c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mapserver/qgsconfigcache.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgsconfigcache.h"
#include "qgslogger.h"
#include "qgsmslayercache.h"
#include "qgsprojectfiletransform.h"
#include "qgsprojectparser.h"
#include "qgssldparser.h"
#include <QCoreApplication>
Expand Down Expand Up @@ -115,6 +116,9 @@ QgsConfigParser* QgsConfigCache::insertConfiguration( const QString& filePath )
}
else if ( documentElem.tagName() == "qgis" )
{
//convert project file to current version first
QgsProjectFileTransform pt( *configDoc, QgsProjectVersion( documentElem.attribute( "version" ) ) );
pt.updateRevision( QgsProjectVersion( QGis::QGIS_VERSION ) );
configParser = new QgsProjectParser( configDoc, filePath );
}
else
Expand Down

0 comments on commit 0a971c3

Please sign in to comment.