We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent d39d268 commit c1b6e8fCopy full SHA for c1b6e8f
src/core/qgsnetworkcontentfetchertask.cpp
@@ -45,11 +45,16 @@ bool QgsNetworkContentFetcherTask::run()
45
{
46
if ( bytesTotal > 0 )
47
48
- setProgress( ( bytesReceived * 100 ) / bytesTotal );
+ int progress = ( bytesReceived * 100 ) / bytesTotal;
49
+ // don't emit 100% progress reports until completely fetched - otherwise we get
50
+ // intermediate 100% reports from redirects
51
+ if ( progress < 100 )
52
+ setProgress( progress );
53
}
54
} );
55
mFetcher->fetchContent( mRequest );
56
loop.exec();
57
+ setProgress( 100 );
58
emit fetched();
59
return true;
60
0 commit comments