Skip to content
Permalink
Browse files

[ftools] Fix "Polygon from layer extent" (#8074)

  • Loading branch information
m-kuhn committed Jun 16, 2013
1 parent 4b8f3c7 commit b96f67b838ec2b1a9ec077afff83ee1fc71ed8e4
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/fTools/tools/doGeometry.py
@@ -282,16 +282,16 @@ def runFinishedFromThread( self, success ):
if success:
if ( self.myFunction == 5 and self.chkWriteShapefile.isChecked() ) or self.myFunction != 5:
addToTOC = QMessageBox.question( self, self.tr("Geometry"),
self.tr( "Created output shapefile:\n%1\n%2\n\nWould you like to add the new layer to the TOC?" ).arg( unicode( self.shapefileName ) ).arg( extra ),
self.tr( "Created output shapefile:\n{0}\n{1}\n\nWould you like to add the new layer to the TOC?" ).format( self.shapefileName, extra ),
QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton )
if addToTOC == QMessageBox.Yes:
if not ftools_utils.addShapeToCanvas( unicode( self.shapefileName ) ):
QMessageBox.warning( self, self.tr( "Geometry"),
self.tr( "Error loading output shapefile:\n%1" ).arg( unicode( self.shapefileName ) ) )
self.tr( "Error loading output shapefile:\n{0}" ).format( self.shapefileName ) )
self.populateLayers()
else:
QMessageBox.information( self, self.tr( "Geometry" ),
self.tr( "Layer '%1' updated" ).arg( self.inShape.currentText() ) )
self.tr( "Layer '{0}' updated" ).format( self.inShape.currentText() ) )
else:
QMessageBox.warning( self, self.tr( "Geometry" ), self.tr( "Error writing output shapefile." ) )

0 comments on commit b96f67b

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