From f61fae0cffed4ec69364b7a1346a4ed42aa8c85c Mon Sep 17 00:00:00 2001 From: Nicolas Godet <39594821+nicogodet@users.noreply.github.com> Date: Tue, 11 Feb 2025 13:45:13 +0100 Subject: [PATCH] Prefer check on `QgsProcessing::TEMPORARY_OUTPUT` instead of filepath --- src/analysis/processing/qgsalgorithmfiledownloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/processing/qgsalgorithmfiledownloader.cpp b/src/analysis/processing/qgsalgorithmfiledownloader.cpp index 45432eb92b7..c6adb3c8770 100644 --- a/src/analysis/processing/qgsalgorithmfiledownloader.cpp +++ b/src/analysis/processing/qgsalgorithmfiledownloader.cpp @@ -141,7 +141,7 @@ QVariantMap QgsFileDownloaderAlgorithm::processAlgorithm( const QVariantMap &par url = downloadedUrl.toDisplayString(); feedback->pushInfo( QObject::tr( "Successfully downloaded %1" ).arg( url ) ); - if ( outputFile.startsWith( QgsProcessingUtils::tempFolder( &context ) ) ) + if ( parameters.value( QStringLiteral( "OUTPUT" ) ) == QgsProcessing::TEMPORARY_OUTPUT ) { // the output is temporary and its file name automatically generated, try to add a file extension const int length = url.size();