Skip to content

Commit

Permalink
Mark a method as non-fatal due to aggregate calculation thread safety…
Browse files Browse the repository at this point in the history
… issues
  • Loading branch information
nyalldawson committed Dec 14, 2022
1 parent fd35e78 commit c9f1343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vector/qgsvectorlayer.cpp
Expand Up @@ -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 ) );
}
Expand Down

0 comments on commit c9f1343

Please sign in to comment.