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 da5a171 commit d3d18050a07b77f81a1285d7ba09d75cfba2f62c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgisapp.cpp
@@ -5682,6 +5682,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 )
{
@@ -5728,6 +5729,7 @@ void QgisApp::showRasterCalculator()
Qgis::Critical );
break;
}
p.hide();
}
}

0 comments on commit d3d1805

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