Skip to content
Permalink
Browse files

Re-add the progress bar to the calculator

Fixes #20583 - Raster calculator freezes the GUI with big rasters

... even if it is frozen while reding the raster,
at least it allows to abort the process later
  • Loading branch information
elpaso committed Nov 26, 2018
1 parent 29abab0 commit 273a71a785012ad9df59b7419ccf6d7efac76710
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgisapp.cpp
@@ -5660,6 +5660,7 @@ void QgisApp::showRasterCalculator()
QgsFeedback feedback;
connect( &feedback, &QgsFeedback::progressChanged, &p, &QProgressDialog::setValue );
connect( &p, &QProgressDialog::canceled, &feedback, &QgsFeedback::cancel );
p.show();
QgsRasterCalculator::Result res = static_cast< QgsRasterCalculator::Result >( rc.processCalculation( &feedback ) );
switch ( res )
{
@@ -5706,6 +5707,7 @@ void QgisApp::showRasterCalculator()
Qgis::Critical );
break;
}
p.hide();
}
}

0 comments on commit 273a71a

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