Skip to content
Permalink
Browse files
[processing] Fix file downloader algorithm crash when download errors…
… out
  • Loading branch information
nirvn committed Sep 1, 2021
1 parent c2e607c commit 5cf1b7aa58d5dfaf9553cd739fc1a077f9107d5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmfiledownloader.cpp
@@ -84,7 +84,7 @@ QVariantMap QgsFileDownloaderAlgorithm::processAlgorithm( const QVariantMap &par
connect( downloader, &QgsFileDownloader::downloadError, this, [&errors, &loop]( const QStringList & e ) { errors = e; loop.exit(); } );
connect( downloader, &QgsFileDownloader::downloadProgress, this, &QgsFileDownloaderAlgorithm::receiveProgressFromDownloader );
connect( downloader, &QgsFileDownloader::downloadCompleted, this, [&downloadedUrl]( const QUrl url ) { downloadedUrl = url; } );
connect( downloader, &QgsFileDownloader::downloadExited, &loop, &QEventLoop::quit );
connect( downloader, &QgsFileDownloader::downloadExited, this, [&loop]() { loop.exit(); } );
connect( &timer, &QTimer::timeout, this, &QgsFileDownloaderAlgorithm::sendProgressFeedback );
downloader->startDownload();
timer.start( 1000 );

0 comments on commit 5cf1b7a

Please sign in to comment.