File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,16 @@ void QgsStatisticalSummaryDockWidget::refreshStatistics()
188
188
189
189
void QgsStatisticalSummaryDockWidget::gathererFinished ()
190
190
{
191
- mGatherer = nullptr ;
192
- mCalculatingProgressBar ->setValue ( -1 );
193
- mCancelButton ->hide ();
194
- mCalculatingProgressBar ->hide ();
191
+ QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender () );
192
+ // this may have been sent from a gathererer which was canceled previously and we don't care
193
+ // about it anymore...
194
+ if ( gatherer == mGatherer )
195
+ {
196
+ mGatherer = nullptr ;
197
+ mCalculatingProgressBar ->setValue ( -1 );
198
+ mCancelButton ->hide ();
199
+ mCalculatingProgressBar ->hide ();
200
+ }
195
201
}
196
202
197
203
void QgsStatisticalSummaryDockWidget::updateNumericStatistics ()
You can’t perform that action at this time.
0 commit comments