Navigation Menu

Skip to content

Commit

Permalink
fTools: remove lines that cause error with non-ascii path
Browse files Browse the repository at this point in the history
  • Loading branch information
minorua committed Jul 4, 2013
1 parent eeb2cb4 commit 7221c73
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/plugins/fTools/tools/doDefineProj.py
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 7221c73

Please sign in to comment.