Skip to content
Permalink
Browse files

clean output proj file name, fixes: #2466

git-svn-id: http://svn.osgeo.org/qgis/trunk@12974 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Feb 25, 2010
1 parent 8825dc1 commit 196037ddb331b522affc7e4b1d8e679aae7c5b30
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/fTools/tools/doDefineProj.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from PyQt4.QtCore import *
from PyQt4.QtGui import *

@@ -69,6 +70,7 @@ def accept(self):
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)

0 comments on commit 196037d

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