Index: scribus/plugins/barcodegenerator/barcodegenerator.cpp
===================================================================
--- scribus/plugins/barcodegenerator/barcodegenerator.cpp	(Revision 25096)
+++ scribus/plugins/barcodegenerator/barcodegenerator.cpp	(Arbeitskopie)
@@ -44,6 +44,7 @@
 
 	/*
 	 *  We extract the barcode information from the BWIPP metadata which looks like this:
+     *  (N.B. That means it regexes the gs-file `barcode.ps` for the strings after matches to "--BEGIN ENCODER ")
 	 *
 	 *  % --BEGIN ENCODER gs1-128--
 	 *  % --REQUIRES preamble raiseerror renlinear code128--
@@ -78,7 +79,7 @@
 		QString resname = rx.cap(2);
 		QString reshead = rx.cap(3);
 		QString resbody = rx.cap(4);
-
+        qDebug() << "Reshead: " << reshead;
 		resbodys[resname] = resbody;
 
 		if (restype=="ENCODER")
@@ -96,6 +97,7 @@
 				resdescs[resname] = rxhead.cap(2).trimmed();
 				resexams[resname] = rxhead.cap(3).trimmed();
 				resexops[resname] = rxhead.cap(4).trimmed();
+                qDebug() << "resexops[" << resname << "]: " << resexops[resname];
 				resrndrs[resname] = rxhead.cap(5).trimmed();
 				encoderlist.append(resname);
 			}
@@ -153,10 +155,20 @@
 
 
 	// Which options checkboxes are enabled for each encoder
+    // TODO: The list should only contain those encoders for which `includeText` option is available
+    // according to file `barcode.ps`.
+    // However, the list of all encoders is copy-assigned, so the option will be available for every encoder,
+    // whether its possible or not.
 	QStringList includetextAvail = encoderlist;
-	foreach (const QString& enc, includetextAvail)
-		resincludetextAvail[enc] = true;
-
+    for (const QString& enc : includetextAvail){
+        //resincludetextAvail[enc] = true;
+        qDebug() << "Map contains key \"" << enc << "\": " << map.contains(enc);
+        QString foo = map[enc].exampleOptions;
+        resincludetextAvail[enc] = foo.contains("includetext");
+    // Disable "include text" option for QR codes
+    //resincludetextAvail["qrcode"] = false;
+    }
+    qDebug() << "Keys: " << map.keys();
 	QStringList guardwhitespaceAvail;
 	guardwhitespaceAvail << "ean13" << "ean8" << "isbn" << "ismn" << "issn" << "ean13composite" << "ean8composite";
 	foreach (const QString& enc, guardwhitespaceAvail)
