Skip to content
Permalink
Browse files

[ftools] disable add to canvas checkbox ìf out file is not selected

  • Loading branch information
slarosa committed Nov 3, 2013
1 parent eeea36e commit 1deaeb0f7a9902f8a475454d33a7d0e72420e7a5
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/fTools/tools/doGeometry.py
@@ -181,9 +181,11 @@ def updateGui( self ):
if self.chkWriteShapefile.isChecked():
self.lineEdit.setEnabled( True )
self.toolOut.setEnabled( True )
self.addToCanvasCheck.setEnabled( True )
else:
self.lineEdit.setEnabled( False )
self.toolOut.setEnabled( False )
self.addToCanvasCheck.setEnabled( False )

def populateLayers( self ):
self.inShape.clear()
@@ -567,7 +569,7 @@ def export_geometry_info( self ):
atMap = inFeat.attributes()
maxIndex = index1 if index1>index2 else index2
if maxIndex>len(atMap):
atMap += [ "" ] * ( index2+1 - len(atMap) )
atMap += [ "" ] * ( index2+1 - len(atMap) )
atMap[ index1 ] = attr1
if index1!=index2:
atMap[ index2 ] = attr2

0 comments on commit 1deaeb0

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