Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/fTools/tools/doSimplify.py
3 changes: 3 additions & 0 deletions python/plugins/fTools/tools/doSimplify.py
Original file line number Diff line number Diff line change
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