mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] fixed fileFilter method in OutputRaster
This commit is contained in:
parent
3ac5d0b095
commit
cbead0bcf4
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user