Skip to content

Commit

Permalink
Make QgsProject::createExpressionContextScope() thread warning non-fa…
Browse files Browse the repository at this point in the history
…tal, this is used extensively from background threads!
  • Loading branch information
nyalldawson committed Dec 16, 2022
1 parent 00570ac commit 1691971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/project/qgsproject.cpp
Expand Up @@ -2332,7 +2332,8 @@ QgsExpressionContext QgsProject::createExpressionContext() const

QgsExpressionContextScope *QgsProject::createExpressionContextScope() const
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// this method is called quite extensively using QgsProject::instance()
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

// MUCH cheaper to clone than build
if ( mProjectScope )
Expand Down

0 comments on commit 1691971

Please sign in to comment.