File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,10 @@ void QgsStatisticalSummaryDockWidget::gathererFinished()
235
235
236
236
void QgsStatisticalSummaryDockWidget::updateNumericStatistics ()
237
237
{
238
- if ( !mGatherer )
238
+ QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender () );
239
+ // this may have been sent from a gathererer which was canceled previously and we don't care
240
+ // about it anymore...
241
+ if ( gatherer != mGatherer )
239
242
return ;
240
243
241
244
QList< QVariant > variantValues = mGatherer ->values ();
@@ -301,7 +304,10 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics()
301
304
302
305
void QgsStatisticalSummaryDockWidget::updateStringStatistics ()
303
306
{
304
- if ( !mGatherer )
307
+ QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender () );
308
+ // this may have been sent from a gathererer which was canceled previously and we don't care
309
+ // about it anymore...
310
+ if ( gatherer != mGatherer )
305
311
return ;
306
312
307
313
QVariantList values = mGatherer ->values ();
@@ -421,7 +427,10 @@ void QgsStatisticalSummaryDockWidget::layerSelectionChanged()
421
427
422
428
void QgsStatisticalSummaryDockWidget::updateDateTimeStatistics ()
423
429
{
424
- if ( !mGatherer )
430
+ QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender () );
431
+ // this may have been sent from a gathererer which was canceled previously and we don't care
432
+ // about it anymore...
433
+ if ( gatherer != mGatherer )
425
434
return ;
426
435
427
436
QVariantList values = mGatherer ->values ();
You can’t perform that action at this time.
0 commit comments