Skip to content

Commit

Permalink
Mark vector layer aggregate method as non fatal warning as aggregate …
Browse files Browse the repository at this point in the history
…expression functions are non-thread safe
  • Loading branch information
nyalldawson committed Dec 13, 2022
1 parent 5b65378 commit e13df52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/vector/qgsvectorlayer.cpp
Expand Up @@ -4945,7 +4945,8 @@ QVariant QgsVectorLayer::aggregate( QgsAggregateCalculator::Aggregate aggregate,
const QgsAggregateCalculator::AggregateParameters &parameters, QgsExpressionContext *context,
bool *ok, QgsFeatureIds *fids, QgsFeedback *feedback, QString *error ) const
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// non fatal for now -- the aggregate expression functions are not thread safe and call this
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

if ( ok )
*ok = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsdiagram.cpp
Expand Up @@ -104,7 +104,7 @@ class TestQgsDiagram : public QgsTest
void cleanupTestCase()
{
delete mMapSettings;
delete mPointsLayer;
QgsProject::instance()->removeAllMapLayers();

QgsApplication::exitQgis();
}
Expand Down

0 comments on commit e13df52

Please sign in to comment.