With beerXML recipe import, the IBU method is always Tinseth.

Thu, 07 Jul 2022 09:54:42 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 07 Jul 2022 09:54:42 +0200
changeset 338
473479de8c5b
parent 337
8133cdb19aa1
child 339
2f3cfb983fcc

With beerXML recipe import, the IBU method is always Tinseth.

src/ImportXML.cpp file | annotate | diff | comparison | revisions
--- a/src/ImportXML.cpp	Thu Jul 07 08:51:57 2022 +0200
+++ b/src/ImportXML.cpp	Thu Jul 07 09:54:42 2022 +0200
@@ -1035,18 +1035,8 @@
 				r->type = 2;
 			} else if ((xml->tokenType() == QXmlStreamReader::StartElement) && (xml->name() == "IBU_METHOD")) {
 			    QString temp = xml->readElementText();
-			    if (temp == "Rager")
-				r->ibu_method = 1;
-			    else if (temp == "Daniels")
-				r->ibu_method = 2;
-			    else if (temp == "Garetz")
-				r->ibu_method = 3;
-			    else if (temp == "Mosher")
-				r->ibu_method = 4;
-			    else if (temp == "Noonan")
-				r->ibu_method = 5;
-			    else
-				r->ibu_method = 0;
+			    /* For the known beerXML names, select Tinseth */
+			    r->ibu_method = 0;
 			} else if ((xml->tokenType() == QXmlStreamReader::StartElement) && (xml->name() == "COLOR_METHOD")) {
 			    QString temp = xml->readElementText();
 			    if (temp == "Mosher")

mercurial