chore: correct wrong reference to super in commitEdit calls
This commit is contained in:
parent
e4fc67e816
commit
6ca38e6613
1 changed files with 2 additions and 2 deletions
|
|
@ -36,11 +36,11 @@ public class IngredientListCell extends OrderedEditableListCell<String> {
|
||||||
String name = nameInput.getText();
|
String name = nameInput.getText();
|
||||||
if (unit == null) {
|
if (unit == null) {
|
||||||
String desc = amountInput.getText();
|
String desc = amountInput.getText();
|
||||||
super.commitEdit(desc + " " + name);
|
commitEdit(desc + " " + name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int amount = Integer.parseInt(amountInput.getText());
|
int amount = Integer.parseInt(amountInput.getText());
|
||||||
super.commitEdit(amount + " " + unit + " of " + name);
|
commitEdit(amount + " " + unit + " of " + name);
|
||||||
});
|
});
|
||||||
this.setText(null);
|
this.setText(null);
|
||||||
this.setGraphic(container);
|
this.setGraphic(container);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue