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 17ea4a9 commit 0a225c4Copy full SHA for 0a225c4
src/core/processing/qgsprocessingparameters.cpp
@@ -3155,7 +3155,7 @@ QString QgsProcessingParameterFeatureSource::valueAsPythonString( const QVariant
3155
// prefer to use layer source instead of id if possible (since it's persistent)
3156
if ( QgsVectorLayer *layer = qobject_cast< QgsVectorLayer * >( QgsProcessingUtils::mapLayerFromString( layerString, context ) ) )
3157
layerString = layer->source();
3158
- return layerString.prepend( '\'' ).append( '\'' );
+ return QgsProcessingUtils::stringToPythonLiteral( layerString );
3159
}
3160
3161
else
0 commit comments