mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Prefer check on QgsProcessing::TEMPORARY_OUTPUT
instead of filepath
This commit is contained in:
parent
e8c378318a
commit
f61fae0cff
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user