[QGIS Commit] r12974 - trunk/qgis/python/plugins/fTools/tools

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Feb 25 06:03:10 EST 2010


Author: cfarmer
Date: 2010-02-25 06:03:08 -0500 (Thu, 25 Feb 2010)
New Revision: 12974

Modified:
   trunk/qgis/python/plugins/fTools/tools/doDefineProj.py
Log:
clean output proj file name, fixes: #2466


Modified: trunk/qgis/python/plugins/fTools/tools/doDefineProj.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doDefineProj.py	2010-02-24 14:05:21 UTC (rev 12973)
+++ trunk/qgis/python/plugins/fTools/tools/doDefineProj.py	2010-02-25 11:03:08 UTC (rev 12974)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
@@ -69,6 +70,7 @@
 					provider = vLayer.dataProvider()
 					self.progressBar.setValue(35)
 					inPath = provider.dataSourceUri()
+					inPath = inPath.remove( QRegExp( "\|.*" ) )
 					self.progressBar.setValue(40)
 					if inPath.endsWith(".shp"):
 						inPath = inPath.left(inPath.length() - 4)



More information about the QGIS-commit mailing list