Skip to content

Commit

Permalink
[ftools] add warning for simplify tool when no one layer has been sel…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
slarosa committed Aug 8, 2013
1 parent 0878fca commit 272b6e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/fTools/tools/doSimplify.py
Expand Up @@ -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 )
Expand Down

0 comments on commit 272b6e1

Please sign in to comment.