Skip to content
Permalink
Browse files

Fix stats dock handling when refresh is clicked lots of times quickly

(cherry-picked from 2233bd4)
  • Loading branch information
nyalldawson committed May 3, 2018
1 parent 21c5eaf commit e74445572afaf893bea5cebf3e18bb33c8176706
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/app/qgsstatisticalsummarydockwidget.cpp
@@ -188,10 +188,16 @@ void QgsStatisticalSummaryDockWidget::refreshStatistics()

void QgsStatisticalSummaryDockWidget::gathererFinished()
{
mGatherer = nullptr;
mCalculatingProgressBar->setValue( -1 );
mCancelButton->hide();
mCalculatingProgressBar->hide();
QgsStatisticsValueGatherer *gatherer = qobject_cast<QgsStatisticsValueGatherer *>( QObject::sender() );
// this may have been sent from a gathererer which was canceled previously and we don't care
// about it anymore...
if ( gatherer == mGatherer )
{
mGatherer = nullptr;
mCalculatingProgressBar->setValue( -1 );
mCancelButton->hide();
mCalculatingProgressBar->hide();
}
}

void QgsStatisticalSummaryDockWidget::updateNumericStatistics()

0 comments on commit e744455

Please sign in to comment.
You can’t perform that action at this time.