Navigation Menu

Skip to content

Commit

Permalink
[Server] Enhance QgsConfigCache
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Sep 19, 2017
1 parent 8774e69 commit 08cacd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/qgsconfigcache.cpp
Expand Up @@ -46,6 +46,7 @@ const QgsProject *QgsConfigCache::project( const QString &path )
if ( prj->read( path ) )
{
mProjectCache.insert( path, prj.release() );
mFileSystemWatcher.addPath( path );
}
}

Expand Down Expand Up @@ -93,6 +94,8 @@ QDomDocument *QgsConfigCache::xmlDocument( const QString &filePath )

void QgsConfigCache::removeChangedEntry( const QString &path )
{
mProjectCache.remove( path );

//xml document must be removed last, as other config cache destructors may require it
mXmlDocumentCache.remove( path );

Expand Down

0 comments on commit 08cacd4

Please sign in to comment.