Skip to content
Permalink
Browse files

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 885c8b495a1fcec4bdd7e680f71a59f1cfb80af0
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 885c8b4

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