Skip to content
Permalink
Browse files

[processing] add default extension to empty filter when available

  • Loading branch information
nirvn committed Jan 24, 2018
1 parent c871e84 commit 746701bf33ed35c2a3a73143e0b87967441be94e
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/gui/ParameterGuiUtils.py
@@ -90,4 +90,7 @@ def getFileFilter(param):
elif param.type() == 'fileDestination':
return param.fileFilter() + ';;' + tr('All files (*.*)')

return ''
if param.defaultFileExtension():
return tr('Default extension') + ' (*.' + param.defaultFileExtension() + ')'
else:
return ''

0 comments on commit 746701b

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