Skip to content

Commit d3d1805

Browse files
committedNov 26, 2018
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
1 parent da5a171 commit d3d1805

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5682,6 +5682,7 @@ void QgisApp::showRasterCalculator()
56825682
QgsFeedback feedback;
56835683
connect( &feedback, &QgsFeedback::progressChanged, &p, &QProgressDialog::setValue );
56845684
connect( &p, &QProgressDialog::canceled, &feedback, &QgsFeedback::cancel );
5685+
p.show();
56855686
QgsRasterCalculator::Result res = static_cast< QgsRasterCalculator::Result >( rc.processCalculation( &feedback ) );
56865687
switch ( res )
56875688
{
@@ -5728,6 +5729,7 @@ void QgisApp::showRasterCalculator()
57285729
Qgis::Critical );
57295730
break;
57305731
}
5732+
p.hide();
57315733
}
57325734
}
57335735

0 commit comments

Comments
 (0)
Please sign in to comment.