Read config TICKET_TEMPLATES: read list- or string-value
This commit is contained in:
parent
fbfbe3d243
commit
c8508a0c62
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user