diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index b50e05a..c7a7c56 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -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;