Skip to content

Commit

Permalink
Use invokeMethod instead of singleshot timer
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and wonder-sk committed Feb 5, 2024
1 parent fb9fc6b commit 9ea3725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgscachedpointcloudblockrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ QgsCachedPointCloudBlockRequest::QgsCachedPointCloudBlockRequest( QgsPointCloudB
: QgsPointCloudBlockRequest( node, uri, attributes, requestedAttributes, scale, offset, filterExpression, filterRect )
{
mBlock.reset( block );
QTimer::singleShot( 0, this, &QgsPointCloudBlockRequest::finished );
QMetaObject::invokeMethod( this, &QgsCachedPointCloudBlockRequest::finished, Qt::QueuedConnection );
}

///@endcond

0 comments on commit 9ea3725

Please sign in to comment.