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 705ffce commit 73a8b80Copy full SHA for 73a8b80
src/core/processing/qgsprocessingparameters.cpp
@@ -3402,7 +3402,14 @@ QString QgsProcessingParameterFileDestination::valueAsPythonString( const QVaria
3402
3403
QgsProcessingOutputDefinition *QgsProcessingParameterFileDestination::toOutputDefinition() const
3404
{
3405
- return new QgsProcessingOutputFile( name(), description() );
+ if ( !mFileFilter.isEmpty() and mFileFilter.contains( QStringLiteral( "html" ), Qt::CaseInsensitive ) )
3406
+ {
3407
+ return new QgsProcessingOutputHtml( name(), description() );
3408
+ }
3409
+ else
3410
3411
+ return new QgsProcessingOutputFile( name(), description() );
3412
3413
}
3414
3415
QString QgsProcessingParameterFileDestination::defaultFileExtension() const
0 commit comments