Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #799 from slarosa/warning_simplifyTool
[ftools] add warning for simplify tool when no one layer has been selected
  • Loading branch information
alexbruy committed Sep 12, 2013
2 parents e72088c + 272b6e1 commit 885c8b4
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 885c8b4

Please sign in to comment.