Skip to content
Permalink
Browse files

[processing] fixed default extension selection

  • Loading branch information
volaya committed May 26, 2016
1 parent 64e05ff commit c080c2035b1d1671d86678c2556ac34c37a4554a
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/core/outputs.py
@@ -273,7 +273,7 @@ def getFileFilter(self, alg):
return ';;'.join(exts)

def getDefaultFileExtension(self, alg):
supported = self.getSupportedOutputVectorLayerExtensions()
supported = alg.provider.getSupportedOutputVectorLayerExtensions()
if self.hasGeometry():
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_VECTOR_LAYER_EXT)
else:
@@ -291,7 +291,7 @@ def getCompatibleFileName(self, alg):
generate the output result.
"""
ext = self.value[self.value.rfind('.') + 1:]
if ext in self.getSupportedOutputVectorLayerExtensions():
if ext in alg.provider.getSupportedOutputVectorLayerExtensions():
return self.value
else:
if self.compatible is None:

0 comments on commit c080c20

Please sign in to comment.
You can’t perform that action at this time.