--- a/src/EditProduct.cpp Thu May 12 22:41:11 2022 +0200 +++ b/src/EditProduct.cpp Fri May 13 20:51:15 2022 +0200 @@ -923,8 +923,7 @@ ui->sp_acidvolEdit->setValue(product->sparge_acid_amount); // Tab brewday. - ui->brew_startEdit->setText(product->brew_date_start.toString("dd MMM yyyy hh:mm")); - ui->brew_endEdit->setText(product->brew_date_end.toString("dd MMM yyyy hh:mm")); + updateBrewday(); ui->brew_mashphEdit->setValue(product->brew_mash_ph); ui->brew_mashphShow->setValue(product->mash_ph); ui->brew_mashsgEdit->setValue(product->brew_mash_sg); @@ -1080,6 +1079,11 @@ connect(ui->sp_acidtypeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::sp_type_changed); connect(ui->sp_phEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::sp_ph_changed); + /* All signals from tab Brewday */ + connect(ui->brew_startButton1, SIGNAL(clicked()), this, SLOT(brew_date_today())); + connect(ui->brew_startButton2, SIGNAL(clicked()), this, SLOT(brew_date_clear())); + connect(ui->brew_startDate, &QDateEdit::dateChanged, this, &EditProduct::brew_start_date_changed); + setStage(); ui->saveButton->setEnabled(false);