Skip to content
Permalink
Browse files

[processing] fixed fileFilter method in OutputRaster

  • Loading branch information
volaya committed Oct 24, 2015
1 parent 3ac5d0b commit cbead0bcf4ce5f2951cb7c5e643a8544bd1571a2
Showing with 3 additions and 8 deletions.
  1. +3 −8 python/plugins/processing/core/outputs.py
@@ -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):

0 comments on commit cbead0b

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