Read config TICKET_TEMPLATES: read list- or string-value

This commit is contained in:
Siegfried Siegert 2025-03-25 12:26:18 +01:00
parent fbfbe3d243
commit c8508a0c62
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -156,7 +156,12 @@ void ATBDeviceControllerPlugin::initTicketTemplateList(const QSettings * setting
//qCritical() << " processing TICKET_VARIANT::" << ticketVariant_char;
QString configKey = QString("TICKET_TEMPLATES/") + ticketVariant_char;
templateListString = settings->value(configKey, "").toString();
QVariant raw_templateList = settings->value(configKey, "");
if (raw_templateList.type() == QVariant::StringList) {
templateListString = raw_templateList.toStringList().join(",");
} else {
templateListString = raw_templateList.toString();
}
// DEBUG
//qCritical() << " configKey: " << configKey;