Skip to content
Permalink
Browse files

processing: fix escaping

  • Loading branch information
jef-n committed Feb 9, 2017
1 parent 4b730c3 commit d55ab85633ef48fc504d2f099f0289e35545b400
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/gui/OutputSelectionPanel.py
@@ -175,8 +175,8 @@ def saveToSpatialite(self):
fileName = str(files[0])
selectedFileFilter = str(fileDialog.selectedNameFilter())
if not fileName.lower().endswith(
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter)
tuple(re.findall("\\*(\\.[a-z]{1,10})", fileFilter))):
ext = re.search("\\*(\\.[a-z]{1,10})", selectedFileFilter)
if ext:
fileName += ext.group(1)
settings.setValue('/Processing/LastOutputPath',
@@ -212,8 +212,8 @@ def selectFile(self):
fileName = str(files[0])
selectedFileFilter = str(fileDialog.selectedNameFilter())
if not fileName.lower().endswith(
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
ext = re.search("\*(\.[a-z]{1,10})", 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 d55ab85

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