Skip to content
Permalink
Browse files

[ftools] add warning for simplify tool when no one layer has been sel…

…ected
  • Loading branch information
slarosa committed Aug 8, 2013
1 parent 0878fca commit 272b6e18589a65eb4b8c3ebb7e629ff721046412
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/fTools/tools/doSimplify.py
@@ -88,6 +88,9 @@ def selectOutputFile( self ):
self.edOutputFile.setText( self.shapeFileName )

def accept( self ):
if not self.cmbInputLayer.currentText():
QMessageBox.warning( self, self.tr( "Warning" ), self.tr( "Please specify an input layer" ) )
return
vLayer = ftools_utils.getVectorLayerByName( self.cmbInputLayer.currentText() )

self.btnOk.setEnabled( False )

0 comments on commit 272b6e1

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