Skip to content

Commit 3e88e8e

Browse files
committedMay 11, 2017
Fix feature counting
1 parent a6800e9 commit 3e88e8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ bool QgsVectorLayer::countSymbolFeatures()
703703
if ( !mFeatureCounter )
704704
{
705705
mFeatureCounter = new QgsVectorLayerFeatureCounter( this );
706-
connect( mFeatureCounter, &QgsVectorLayerFeatureCounter::symbolsCounted, this, &QgsVectorLayer::onSymbolsCounted );
707-
connect( mFeatureCounter, &QgsTask::taskCompleted, [ = ]() { mFeatureCounter = nullptr; } );
706+
connect( mFeatureCounter, &QgsTask::taskCompleted, [ = ]() { onSymbolsCounted(); mFeatureCounter = nullptr; } );
708707
connect( mFeatureCounter, &QgsTask::taskTerminated, [ = ]() { mFeatureCounter = nullptr; } );
709708

710709
QgsApplication::taskManager()->addTask( mFeatureCounter );

0 commit comments

Comments
 (0)
Please sign in to comment.