mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Statistics task, feature count task can be canceled on QGIS exit without asking
This commit is contained in:
parent
589aabe474
commit
6ab8c16dc3
@ -567,7 +567,7 @@ QgsStatisticalSummaryDockWidget::DataType QgsStatisticalSummaryDockWidget::field
|
||||
}
|
||||
|
||||
QgsStatisticsValueGatherer::QgsStatisticsValueGatherer( QgsVectorLayer *layer, const QgsFeatureIterator &fit, long featureCount, const QString &sourceFieldExp )
|
||||
: QgsTask( tr( "Fetching statistic values" ) )
|
||||
: QgsTask( tr( "Fetching statistic values" ), QgsTask::CanCancel | QgsTask::CancelWithoutPrompt )
|
||||
, mFeatureIterator( fit )
|
||||
, mFeatureCount( featureCount )
|
||||
, mFieldExpression( sourceFieldExp )
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "qgsfeedback.h"
|
||||
|
||||
QgsVectorLayerFeatureCounter::QgsVectorLayerFeatureCounter( QgsVectorLayer *layer, const QgsExpressionContext &context, bool storeSymbolFids )
|
||||
: QgsTask( tr( "Counting features in %1" ).arg( layer->name() ), QgsTask::CanCancel )
|
||||
: QgsTask( tr( "Counting features in %1" ).arg( layer->name() ), QgsTask::CanCancel | QgsTask::CancelWithoutPrompt )
|
||||
, mSource( new QgsVectorLayerFeatureSource( layer ) )
|
||||
, mRenderer( layer->renderer()->clone() )
|
||||
, mExpressionContext( context )
|
||||
|
Loading…
x
Reference in New Issue
Block a user