Skip to content
Permalink
Browse files

fTools: remove lines that cause error with non-ascii path

  • Loading branch information
minorua committed Jul 4, 2013
1 parent eeb2cb4 commit 7221c732fd7dfd2475fc119a17b87eef29f7b8a9
Showing with 0 additions and 3 deletions.
  1. +0 −3 python/plugins/fTools/tools/doDefineProj.py
@@ -118,12 +118,10 @@ def accept(self):
inPath = provider.dataSourceUri()
p = re.compile("\|.*")
inPath = p.sub("", inPath)
print "PATH", inPath
self.progressBar.setValue(40)
if inPath.endswith(".shp"):
inPath = inPath[:-4]
self.progressBar.setValue(55)
print "PATH2", inPath
if not srsDefine.isValid():
QMessageBox.information(self, self.tr("Define current projection"), self.tr("Output spatial reference system is not valid"))
else:
@@ -147,7 +145,6 @@ def accept(self):
self.progressBar.setValue(95)
vLayer.setCrs(srsDefine)
self.progressBar.setValue(100)
print "PATH3", inPath
QMessageBox.information(self, self.tr("Define current projection"),
self.tr("Defined Projection For:\n%s.shp") % (inPath) )
self.progressBar.setValue(0)

0 comments on commit 7221c73

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