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])
selectedFileFilter = unicode(fileDialog.selectedNameFilter())
if not fileName.lower().endswith(
tuple(re.findall("\*(\.[a-z]{1,5})", fileFilter))):
ext = re.search("\*(\.[a-z]{1,5})", selectedFileFilter)
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter)
if ext:
fileName += ext.group(1)
self.leText.setText(fileName)
Expand Down

0 comments on commit 1579a68

Please sign in to comment.