Skip to content

Commit

Permalink
[processing] fixed modeler calcualtor when opening dialog for the fir…
Browse files Browse the repository at this point in the history
…st time

fixes #13587
  • Loading branch information
volaya committed Oct 13, 2015
1 parent ca27277 commit c87646a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c87646a

Please sign in to comment.