Skip to content

Commit cbead0b

Browse files
committedOct 24, 2015
[processing] fixed fileFilter method in OutputRaster
1 parent 3ac5d0b commit cbead0b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed
 

‎python/plugins/processing/core/outputs.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,11 @@ class OutputRaster(Output):
151151

152152
compatible = None
153153

154+
154155
def getFileFilter(self, alg):
155-
providerExts = alg.provider.getSupportedOutputRasterLayerExtensions()
156-
if providerExts == ['tif']:
157-
# use default extensions
158-
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
159-
else:
160-
# use extensions given by the algorithm provider
161-
exts = providerExts
156+
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
162157
for i in range(len(exts)):
163-
exts[i] = self.tr('%s files(*.%s)', 'OutputRaster') % (exts[i].upper(), exts[i].lower())
158+
exts[i] = self.tr('%s files (*.%s)', 'OutputVector') % (exts[i].upper(), exts[i].lower())
164159
return ';;'.join(exts)
165160

166161
def getDefaultFileExtension(self, alg):

0 commit comments

Comments
 (0)