Skip to content
Permalink
Browse files

alternative approach to hide progress bar when unchecking render

  • Loading branch information
nirvn committed Feb 2, 2018
1 parent e65c16b commit 5b470aa18b50f1b1809fe6881446eaaa52660761
Showing with 2 additions and 2 deletions.
  1. +2 −0 src/app/qgisapp.cpp
  2. +0 −2 src/gui/qgsmapcanvas.cpp
@@ -3146,6 +3146,8 @@ void QgisApp::setupConnections()
{
Q_FOREACH ( QgsMapCanvas *canvas, mapCanvases() )
canvas->setRenderFlag( flag );
if ( !flag )
canvasRefreshFinished(); // deals with the busy indicator in case of ongoing rendering
} );

connect( mMapCanvas, &QgsMapCanvas::destinationCrsChanged, this, &QgisApp::reprojectAnnotations );
@@ -695,8 +695,6 @@ void QgsMapCanvas::stopRendering()
connect( mJob, &QgsMapRendererQImageJob::finished, mJob, &QgsMapRendererQImageJob::deleteLater );
mJob->cancelWithoutBlocking();
mJob = nullptr;

emit mapCanvasRefreshed();
}
stopPreviewJobs();
}

0 comments on commit 5b470aa

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