Skip to content

Commit 746701b

Browse files
committed
[processing] add default extension to empty filter when available
1 parent c871e84 commit 746701b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/plugins/processing/gui/ParameterGuiUtils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,7 @@ def getFileFilter(param):
9090
elif param.type() == 'fileDestination':
9191
return param.fileFilter() + ';;' + tr('All files (*.*)')
9292

93-
return ''
93+
if param.defaultFileExtension():
94+
return tr('Default extension') + ' (*.' + param.defaultFileExtension() + ')'
95+
else:
96+
return ''

0 commit comments

Comments
 (0)