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 1 changed file with 4 additions and 1 deletion.
@@ -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.