diff --git a/src/server/qgsserver.cpp b/src/server/qgsserver.cpp index d841b215bea..72d479a7d4d 100644 --- a/src/server/qgsserver.cpp +++ b/src/server/qgsserver.cpp @@ -353,15 +353,15 @@ void QgsServer::handleRequest( QgsServerRequest& request, QgsServerResponse& res QString configFilePath = configPath( *sConfigFilePath, parameterMap ); // load the project if needed and not empty - auto projectIt = mProjectStore.find( configFilePath ); - if ( projectIt == mProjectStore.constEnd() ) + auto projectIt = mProjectRegistry.find( configFilePath ); + if ( projectIt == mProjectRegistry.constEnd() ) { // load the project QgsProject* project = new QgsProject(); project->setFileName( configFilePath ); if ( project->read() ) { - projectIt = mProjectStore.insert( configFilePath, project ); + projectIt = mProjectRegistry.insert( configFilePath, project ); } else { diff --git a/src/server/qgsserver.h b/src/server/qgsserver.h index bd9f3e0555a..cc326dd5ecf 100644 --- a/src/server/qgsserver.h +++ b/src/server/qgsserver.h @@ -133,7 +133,7 @@ class SERVER_EXPORT QgsServer static QgsServerSettings sSettings; // map of QgsProject - QMap mProjectStore; + QMap mProjectRegistry; }; #endif // QGSSERVER_H