Skip to content
Permalink
Browse files

[processing] fixed modeler calcualtor when opening dialog for the fir…

…st time

fixes #13587
  • Loading branch information
volaya committed Oct 13, 2015
1 parent ca27277 commit c87646a9a7810456fce47e416eeceafd09f917df
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/modeler/CalculatorModelerAlgorithm.py
@@ -101,8 +101,9 @@ def setupUi(self):
self.formulaText = QLineEdit()
if hasattr(self.formulaText, 'setPlaceholderText'):
self.formulaText.setPlaceholderText(self.tr('[Enter your formula here]', 'CalculatorModelerParametersDialog'))
alg = self.model.algs[self._algName]
self.formulaText.setText(alg.params[FORMULA])
if self._algName is not None:
alg = self.model.algs[self._algName]
self.formulaText.setText(alg.params[FORMULA])
self.setWindowTitle(self.tr('Calculator', 'CalculatorModelerParametersDialog'))
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setSpacing(2)

0 comments on commit c87646a

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