# HG changeset patch # User Michiel Broek # Date 1668436451 -3600 # Node ID d1a6c269ba6a89be5a6bf7fb3b772775de021a4a # Parent 6f84ab6125ad4ec6a625cc8d3519e56f4a6b53ed Show product code and name in edit product window title if not a new product. diff -r 6f84ab6125ad -r d1a6c269ba6a src/EditProduct.cpp --- a/src/EditProduct.cpp Mon Nov 14 15:23:51 2022 +0100 +++ b/src/EditProduct.cpp Mon Nov 14 15:34:11 2022 +0100 @@ -41,8 +41,6 @@ product->boil_absorb = product->ferment_absorb = 0; this->recno = id; - WindowTitle(); - ui->typeEdit->addItem(tr("Extract")); ui->typeEdit->addItem(tr("Partial Mash")); ui->typeEdit->addItem(tr("All Grain")); @@ -115,6 +113,7 @@ if (! DB_product::load(product, this, id)) return; qInfo() << "EditProduct" << product->code << "," << product->name; + WindowTitle(); /* * Check status of logfiles. @@ -159,6 +158,7 @@ } else { /* New product, set some defaults */ qInfo() << "EditProduct, start new product"; + WindowTitle(); product->record = -1; product->locked = product->log_brew = product->log_fermentation = product->log_ispindel = product->log_co2pressure = false; product->st_name = ""; @@ -809,7 +809,7 @@ if (this->recno < 0) { txt = QString(tr("BMSapp - Add new product")); } else { - txt = QString(tr("BMSapp - Edit product %1").arg(this->recno)); + txt = QString(tr("BMSapp - Edit %1 - %2").arg(product->code).arg(product->name)); } if (this->textIsChanged) { diff -r 6f84ab6125ad -r d1a6c269ba6a translations/bmsapp_en.ts --- a/translations/bmsapp_en.ts Mon Nov 14 15:23:51 2022 +0100 +++ b/translations/bmsapp_en.ts Mon Nov 14 15:34:11 2022 +0100 @@ -3951,32 +3951,32 @@ - + Extract - + Partial Mash - + All Grain + + None + + + + + Air + + + - None - - - - - Air - - - - Oxygen @@ -3992,7 +3992,7 @@ - BMSapp - Edit product %1 + BMSapp - Edit %1 - %2 @@ -4640,63 +4640,63 @@ - + Very malty and sweet - - Malty, sweet - - - - - Balanced + Malty, sweet - Hoppy, bitter + + Balanced + Hoppy, bitter + + + + Very hoppy, very bitter - - Too malty - - - - Very malty + Too malty + Very malty + + + + Malty - - Little bitter - - - - Bitter + Little bitter - Very bitter + Bitter + Very bitter + + + + Too bitter diff -r 6f84ab6125ad -r d1a6c269ba6a translations/bmsapp_nl.ts --- a/translations/bmsapp_nl.ts Mon Nov 14 15:23:51 2022 +0100 +++ b/translations/bmsapp_nl.ts Mon Nov 14 15:34:11 2022 +0100 @@ -4265,21 +4265,26 @@ Print - + Extract Extract - + Partial Mash Deelmaisch - + All Grain Mout + + BMSapp - Edit %1 - %2 + + + Source 1 Bron 1 @@ -4308,17 +4313,17 @@ Afkoelen - + None Geen - + Air Lucht - + Oxygen Zuurstof @@ -4345,9 +4350,8 @@ BMSapp - Nieuw product - BMSapp - Edit product %1 - BMSapp - Wijzig product %1 + BMSapp - Wijzig product %1 @@ -5047,63 +5051,63 @@ Infusie temperatuur: - + Very malty and sweet Zeer moutig en zoet - - Malty, sweet - Moutig, zoet - - - - Balanced - Gebalanceerd + Malty, sweet + Moutig, zoet - Hoppy, bitter - Hoppig, bitter + + Balanced + Gebalanceerd + Hoppy, bitter + Hoppig, bitter + + + Very hoppy, very bitter Erg hoppig, erg bitter - - Too malty - Te moutig - - - Very malty - Erg moutig + Too malty + Te moutig + Very malty + Erg moutig + + + Malty Moutig - - Little bitter - Iets bitter - - - Bitter - Bitter + Little bitter + Iets bitter - Very bitter - Erg bitter + Bitter + Bitter + Very bitter + Erg bitter + + + Too bitter Veel te bitter