Skip to content

Commit 7bd435e

Browse files
committed
Emit finshed signal, when the vector layer cache has been initialized.
1 parent f216ddd commit 7bd435e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/core/qgsvectorlayercache.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ void QgsVectorLayerCache::setFullCache( bool fullCache )
102102
}
103103

104104
it.close();
105+
106+
emit finished();
105107
}
106108
}
107109

src/core/qgsvectorlayercache.h

+5
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ class CORE_EXPORT QgsVectorLayerCache : public QObject
224224
*/
225225
void progress( int i, bool& cancel );
226226

227+
/**
228+
* When filling the cache, this signal gets emitted once the cache is fully initialized.
229+
*/
230+
void finished();
231+
227232
/**
228233
* @brief Is emitted when the cached layer is deleted. Is emitted when the cached layers layerDelete()
229234
* signal is being emitted, but before the local reference to it has been set to NULL. So call to

0 commit comments

Comments
 (0)