Skip to content

Commit 1579a68

Browse files
committed
[processing] correctly handle filenames with long extension names in output file selector
fixes #10264
1 parent 32d6275 commit 1579a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/gui/OutputSelectionPanel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def selectFile(self):
113113
fileName = unicode(files[0])
114114
selectedFileFilter = unicode(fileDialog.selectedNameFilter())
115115
if not fileName.lower().endswith(
116-
tuple(re.findall("\*(\.[a-z]{1,5})", fileFilter))):
117-
ext = re.search("\*(\.[a-z]{1,5})", selectedFileFilter)
116+
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
117+
ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter)
118118
if ext:
119119
fileName += ext.group(1)
120120
self.leText.setText(fileName)

0 commit comments

Comments
 (0)