mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Fix assert when trying to update a node that's not loaded yet
This commit is contained in:
parent
bb4962ee30
commit
6f010b4933
@ -323,6 +323,18 @@ void QgsChunkedEntity::updateNodes( const QList<QgsChunkNode *> &nodes, QgsChunk
|
|||||||
{
|
{
|
||||||
cancelActiveJob( node->updater() );
|
cancelActiveJob( node->updater() );
|
||||||
}
|
}
|
||||||
|
else if ( node->state() == QgsChunkNode::Skeleton || node->state() == QgsChunkNode::QueuedForLoad )
|
||||||
|
{
|
||||||
|
// there is not much to update yet
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if ( node->state() == QgsChunkNode::Loading )
|
||||||
|
{
|
||||||
|
// let's cancel the current loading job and queue for loading again
|
||||||
|
cancelActiveJob( node->loader() );
|
||||||
|
requestResidency( node );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Q_ASSERT( node->state() == QgsChunkNode::Loaded );
|
Q_ASSERT( node->state() == QgsChunkNode::Loaded );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user