mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[sextante] don't run models without algorithms and/or parameters
This commit is contained in:
parent
d247b21be7
commit
4e5c660823
@ -126,6 +126,13 @@ class ModelerDialog(QDialog, Ui_DlgModeler):
|
||||
|
||||
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,
|
||||
self.tr("Empty model"),
|
||||
self.tr("Model doesn't contains any algorithms and/or parameters and can't be executed")
|
||||
)
|
||||
return
|
||||
|
||||
if self.alg.descriptionFile is None:
|
||||
self.alg.descriptionFile = SextanteUtils.getTempFilename("model")
|
||||
text = self.alg.serialize()
|
||||
|
Loading…
x
Reference in New Issue
Block a user