src/EditProductTab7.cpp

changeset 525
e6a4a3a29584
parent 464
1fed3ff9a64e
child 528
50b057ae50aa
--- a/src/EditProductTab7.cpp	Thu Apr 25 13:16:48 2024 +0200
+++ b/src/EditProductTab7.cpp	Sat Jun 01 15:19:08 2024 +0200
@@ -453,7 +453,7 @@
     qDebug() << "stepph_changed" << product->mashs_row << val;
 
     if (product->mashs.at(product->mashs_row).step_ph == 0) {
-	if (product->mashs_row == 0) {
+	if ((product->mashs_row == 0) || ((product->mashs_row > 0) && (product->mashs.at(product->mashs_row - 1).step_ph == 0))) {
 	    /*
 	     * Jump start at 5.0pH
 	     */
@@ -642,7 +642,7 @@
     stepphEdit->setDecimals(2);
     stepphEdit->setMaximum(14.0);
     stepphEdit->setAccelerated(true);
-    stepphEdit->setSingleStep(0.1);
+    stepphEdit->setSingleStep(0.01);
     stepphEdit->setValue(product->mashs.at(product->mashs_row).step_ph);
 
     /*

mercurial