Skip to content

Commit

Permalink
Make some warnings non fatal as needed by dangerous thread use in Qgs…
Browse files Browse the repository at this point in the history
…VirtualLayerTask
  • Loading branch information
nyalldawson committed Dec 13, 2022
1 parent 6bd3fed commit 0c81a2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/vector/qgsvectorlayer.cpp
Expand Up @@ -431,7 +431,8 @@ QString QgsVectorLayer::sourceName() const

void QgsVectorLayer::reload()
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// non fatal for now -- the QgsVirtualLayerTask class is not thread safe and calls this
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

if ( mDataProvider )
{
Expand Down Expand Up @@ -4338,7 +4339,8 @@ void QgsVectorLayer::updateExpressionField( int index, const QString &exp )

void QgsVectorLayer::updateFields()
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// non fatal for now -- the QgsVirtualLayerTask class is not thread safe and calls this
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

if ( !mDataProvider )
return;
Expand Down

0 comments on commit 0c81a2b

Please sign in to comment.