Skip to content
Permalink
Browse files

[processing] correctly handle filenames with long extension names in …

…output file selector

fixes #10264
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 32d6275 commit 1579a68b13b4f69f48620b16eac3dff309ac3ff4
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/OutputSelectionPanel.py
@@ -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)

0 comments on commit 1579a68

Please sign in to comment.
You can’t perform that action at this time.