Skip to content

Commit

Permalink
Emit finshed signal, when the vector layer cache has been initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 13, 2013
1 parent f216ddd commit 7bd435e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayercache.cpp
Expand Up @@ -102,6 +102,8 @@ void QgsVectorLayerCache::setFullCache( bool fullCache )
}

it.close();

emit finished();
}
}

Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsvectorlayercache.h
Expand Up @@ -224,6 +224,11 @@ class CORE_EXPORT QgsVectorLayerCache : public QObject
*/
void progress( int i, bool& cancel );

/**
* When filling the cache, this signal gets emitted once the cache is fully initialized.
*/
void finished();

/**
* @brief Is emitted when the cached layer is deleted. Is emitted when the cached layers layerDelete()
* signal is being emitted, but before the local reference to it has been set to NULL. So call to
Expand Down

0 comments on commit 7bd435e

Please sign in to comment.