Mark a method as non-fatal due to aggregate calculation thread safety issues

This commit is contained in:
Nyall Dawson 2022-12-14 17:18:52 +10:00
parent fd35e78ea2
commit c9f13438f9

View File

@ -5609,7 +5609,8 @@ void QgsVectorLayer::setAttributeTableConfig( const QgsAttributeTableConfig &att
QgsExpressionContext QgsVectorLayer::createExpressionContext() const
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// called in a non-thread-safe way in some cases when calculating aggregates in a different thread
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
return QgsExpressionContext( QgsExpressionContextUtils::globalProjectLayerScopes( this ) );
}