Skip to content

Commit c080c20

Browse files
committed
[processing] fixed default extension selection
1 parent 64e05ff commit c080c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/core/outputs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def getFileFilter(self, alg):
273273
return ';;'.join(exts)
274274

275275
def getDefaultFileExtension(self, alg):
276-
supported = self.getSupportedOutputVectorLayerExtensions()
276+
supported = alg.provider.getSupportedOutputVectorLayerExtensions()
277277
if self.hasGeometry():
278278
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_VECTOR_LAYER_EXT)
279279
else:
@@ -291,7 +291,7 @@ def getCompatibleFileName(self, alg):
291291
generate the output result.
292292
"""
293293
ext = self.value[self.value.rfind('.') + 1:]
294-
if ext in self.getSupportedOutputVectorLayerExtensions():
294+
if ext in alg.provider.getSupportedOutputVectorLayerExtensions():
295295
return self.value
296296
else:
297297
if self.compatible is None:

0 commit comments

Comments
 (0)