Skip to content
Permalink
Browse files

[Server] Enhance QgsConfigCache

  • Loading branch information
rldhont committed Sep 19, 2017
1 parent 8774e69 commit 08cacd4a1e81c41170d1fc8138d9d368c62b9cf2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/server/qgsconfigcache.cpp
@@ -46,6 +46,7 @@ const QgsProject *QgsConfigCache::project( const QString &path )
if ( prj->read( path ) )
{
mProjectCache.insert( path, prj.release() );
mFileSystemWatcher.addPath( path );
}
}

@@ -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 );

0 comments on commit 08cacd4

Please sign in to comment.
You can’t perform that action at this time.