Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] fixed default extension selection
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+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: |
|
|