Skip to content

Commit

Permalink
Allow selecting wildcard filter for any file input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 18, 2017
1 parent cfbc009 commit 387e049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/FileSelectionPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def showSelectionDialog(self):
os.path.dirname(folder))
else:
filenames, selected_filter = QFileDialog.getOpenFileNames(self,
self.tr('Select file'), path, '*.' + self.ext)
self.tr('Select file'), path, self.tr('{} files').format(self.ext.upper()) + ' (*.' + self.ext + self.tr(');;All files (*.*)'))
if filenames:
self.leText.setText(u';'.join(filenames))
settings.setValue('/Processing/LastInputPath',
Expand Down

0 comments on commit 387e049

Please sign in to comment.