Skip to content

Commit

Permalink
[ftools] disable add to canvas checkbox ìf out file is not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Nov 3, 2013
1 parent eeea36e commit 1deaeb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/fTools/tools/doGeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1deaeb0

Please sign in to comment.