Skip to content

Commit 08cacd4

Browse files
committedSep 19, 2017
[Server] Enhance QgsConfigCache
1 parent 8774e69 commit 08cacd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/server/qgsconfigcache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const QgsProject *QgsConfigCache::project( const QString &path )
4646
if ( prj->read( path ) )
4747
{
4848
mProjectCache.insert( path, prj.release() );
49+
mFileSystemWatcher.addPath( path );
4950
}
5051
}
5152

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

9495
void QgsConfigCache::removeChangedEntry( const QString &path )
9596
{
97+
mProjectCache.remove( path );
98+
9699
//xml document must be removed last, as other config cache destructors may require it
97100
mXmlDocumentCache.remove( path );
98101

0 commit comments

Comments
 (0)
Please sign in to comment.