Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed May 1, 2018
1 parent 8961ac4 commit 2233bd44f99e3be5d2b7aa21c4cc0f53d2de534e
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/app/qgsstatisticalsummarydockwidget.cpp
@@ -219,10 +219,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 2233bd4

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