Ingredients: make sub-heading clearer

This commit is contained in:
Marcel Kapfer 2020-05-01 21:29:51 +02:00
parent 3b5629d2ed
commit 6f208d9bc8
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -57,7 +57,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
if self.c_heading.checkState() == 2 or self.e_amount.text():
if self.e_ingredient.text():
if self.c_heading.checkState() == 2:
current_amount = QTableWidgetItem("")
current_amount = QTableWidgetItem("----------")
else:
current_amount = QTableWidgetItem(self.e_amount.text())
current_ingredient = QTableWidgetItem(self.e_ingredient.text())