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 @@ -219,10 +219,16 @@ void QgsStatisticalSummaryDockWidget::refreshStatistics()
219
219
220
220
void QgsStatisticalSummaryDockWidget::gathererFinished ()
221
221
{
222
- mGatherer = nullptr ;
223
- mCalculatingProgressBar ->setValue ( -1 );
224
- mCancelButton ->hide ();
225
- mCalculatingProgressBar ->hide ();
222
+ QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender () );
223
+ // this may have been sent from a gathererer which was canceled previously and we don't care
224
+ // about it anymore...
225
+ if ( gatherer == mGatherer )
226
+ {
227
+ mGatherer = nullptr ;
228
+ mCalculatingProgressBar ->setValue ( -1 );
229
+ mCancelButton ->hide ();
230
+ mCalculatingProgressBar ->hide ();
231
+ }
226
232
}
227
233
228
234
void QgsStatisticalSummaryDockWidget::updateNumericStatistics ()
You can’t perform that action at this time.
0 commit comments