File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -486,9 +486,9 @@ void qhookerMain::LoadConfig(const QString &path)
486486 settings->beginGroup (" Output" );
487487
488488 QStringList settingsTemp = settings->childKeys ();
489- for (uint8_t i = 0 ; i < settingsTemp.length (); i++ ) {
489+ for (int i = 0 ; i < settingsTemp.length (); ++i ) {
490490 // QSettings splits anything with a comma, so we have to stitch the Q-splitted value back together.
491- if (settings->value (settingsTemp[i]).type () == QVariant::StringList )
491+ if (settings->value (settingsTemp[i]).metaType (). id () == QMetaType::QStringList )
492492 settingsMap[settingsTemp[i]] = settings->value (settingsTemp[i]).toStringList ().join (" ," );
493493 else settingsMap[settingsTemp[i]] = settings->value (settingsTemp[i]).toString ();
494494 }
You can’t perform that action at this time.
0 commit comments