Skip to content
Browse files

[sextante] don't run models without algorithms and/or parameters

  • Loading branch information
alexbruy committed Apr 10, 2013
1 parent d247b21 commit 4e5c660823b5aa9ddc88db297b4137c51365f126
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/plugins/sextante/modeler/
@@ -126,6 +126,13 @@ def editHelp(self):

def runModel(self):
##TODO: enable alg cloning without saving to file
if (len(self.alg.algs) == 0) or (len(self.algParameters) == 0):
QMessageBox.warning(self,"Empty model"),"Model doesn't contains any algorithms and/or parameters and can't be executed")

if self.alg.descriptionFile is None:
self.alg.descriptionFile = SextanteUtils.getTempFilename("model")
text = self.alg.serialize()

0 comments on commit 4e5c660

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