Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed fileFilter method in OutputRaster
  • Loading branch information
volaya committed Oct 24, 2015
1 parent 3ac5d0b commit cbead0b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions python/plugins/processing/core/outputs.py
Expand Up @@ -151,16 +151,11 @@ class OutputRaster(Output):

compatible = None


def getFileFilter(self, alg):
providerExts = alg.provider.getSupportedOutputRasterLayerExtensions()
if providerExts == ['tif']:
# use default extensions
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
else:
# use extensions given by the algorithm provider
exts = providerExts
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
for i in range(len(exts)):
exts[i] = self.tr('%s files(*.%s)', 'OutputRaster') % (exts[i].upper(), exts[i].lower())
exts[i] = self.tr('%s files (*.%s)', 'OutputVector') % (exts[i].upper(), exts[i].lower())
return ';;'.join(exts)

def getDefaultFileExtension(self, alg):
Expand Down

0 comments on commit cbead0b

Please sign in to comment.