Index: sources/view/settings/VSettings.cpp =================================================================== diff -u -ra55e0de27d8c427dd4d441f47bb22ca2fe0ca462 -rbf9223700613ced6c377f3e3a7b4de8367c30474 --- sources/view/settings/VSettings.cpp (.../VSettings.cpp) (revision a55e0de27d8c427dd4d441f47bb22ca2fe0ca462) +++ sources/view/settings/VSettings.cpp (.../VSettings.cpp) (revision bf9223700613ced6c377f3e3a7b4de8367c30474) @@ -109,29 +109,24 @@ QStringList keys ; QVariantList values ; QString title = ""; - - if ( Storage::Settings::isCategoryInstructions( category ) ) { - for (const QString &key : _Settings.keys(category, group)) { - if (Storage::Settings::isKeyTitle ( key ) ) { - title = _Settings.value(category, group, key).toString(); - } else { - const QString imagePath = QStringLiteral("%1%2").arg(_location) - .arg(_Settings.value(category, group, key).toString()); - QFileInfo fileInfo(imagePath); - values.append(fileInfo.exists() && fileInfo.isFile() ? "file:" + imagePath : ""); - keys.append(key); - } + for (const QString &key : _Settings.keys(category, group)) { + if (Storage::Settings::isKeyTitle ( key ) ) { + title = _Settings.value(category, group, key).toString(); + } else { + const QString imagePath = QStringLiteral("%1%2").arg(_location) + .arg(_Settings.value(category, group, key).toString()); + QFileInfo fileInfo(imagePath); + values.append(fileInfo.exists() && fileInfo.isFile() ? "file:" + imagePath : ""); + keys.append(key); } + } + if ( Storage::Settings::isCategoryInstructions( category ) ) { TKeysList keysList = updateReplacements(group, keys ); updateInstructions(group, keysList, values, title ); updateInstructions(group ); } else { //TODO: Since it is global system settings, move this to the settings controller so the C++ backend can also use it. like Date/Time formats. - for (const QString &key : _Settings.keys(category, group)) { - keys.append(key); - } - for (const auto &key : qAsConst(keys)) { // DEBUG: qDebug() << " ~~~~~~~~~~ " << category << group << key << _Settings.value(category, group, key).toString (); QVariantMap keyValue;