Skip to content

Commit

Permalink
[processing] correctly handle filenames with long extension names in …
Browse files Browse the repository at this point in the history
…output file selector

fixes #10264
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 32d6275 commit 1579a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/OutputSelectionPanel.py
Expand Up @@ -113,8 +113,8 @@ def selectFile(self):
fileName = unicode(files[0]) fileName = unicode(files[0])
selectedFileFilter = unicode(fileDialog.selectedNameFilter()) selectedFileFilter = unicode(fileDialog.selectedNameFilter())
if not fileName.lower().endswith( if not fileName.lower().endswith(
tuple(re.findall("\*(\.[a-z]{1,5})", fileFilter))): tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
ext = re.search("\*(\.[a-z]{1,5})", selectedFileFilter) ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter)
if ext: if ext:
fileName += ext.group(1) fileName += ext.group(1)
self.leText.setText(fileName) self.leText.setText(fileName)
Expand Down

0 comments on commit 1579a68

Please sign in to comment.