We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ca27277 commit c87646aCopy full SHA for c87646a
python/plugins/processing/modeler/CalculatorModelerAlgorithm.py
@@ -101,8 +101,9 @@ def setupUi(self):
101
self.formulaText = QLineEdit()
102
if hasattr(self.formulaText, 'setPlaceholderText'):
103
self.formulaText.setPlaceholderText(self.tr('[Enter your formula here]', 'CalculatorModelerParametersDialog'))
104
- alg = self.model.algs[self._algName]
105
- self.formulaText.setText(alg.params[FORMULA])
+ if self._algName is not None:
+ alg = self.model.algs[self._algName]
106
+ self.formulaText.setText(alg.params[FORMULA])
107
self.setWindowTitle(self.tr('Calculator', 'CalculatorModelerParametersDialog'))
108
self.verticalLayout = QVBoxLayout()
109
self.verticalLayout.setSpacing(2)
0 commit comments