mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing] add default extension to empty filter when available
This commit is contained in:
parent
c871e84e36
commit
746701bf33
@ -90,4 +90,7 @@ def getFileFilter(param):
|
|||||||
elif param.type() == 'fileDestination':
|
elif param.type() == 'fileDestination':
|
||||||
return param.fileFilter() + ';;' + tr('All files (*.*)')
|
return param.fileFilter() + ';;' + tr('All files (*.*)')
|
||||||
|
|
||||||
return ''
|
if param.defaultFileExtension():
|
||||||
|
return tr('Default extension') + ' (*.' + param.defaultFileExtension() + ')'
|
||||||
|
else:
|
||||||
|
return ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user