QSettings: Fix reading of the [%General] section
The currentSection key was accidentally using the whole remaining section contents. Change-Id: Iec6e38636e519170eef136401ede4b626e12754a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 903a883044165b8f40f500684c437f4102031425) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
34a130a2da
commit
e0aa72c32d
@ -1631,7 +1631,7 @@ bool QConfFileSettingsPrivate::readIniFile(QByteArrayView data,
|
||||
currentSection.clear();
|
||||
} else {
|
||||
if (iniSection.compare("%general", Qt::CaseInsensitive) == 0) {
|
||||
currentSection = QLatin1StringView(iniSection.constData() + 1);
|
||||
currentSection = QLatin1StringView(iniSection.constData() + 1, iniSection.size() - 1);
|
||||
} else {
|
||||
currentSection.clear();
|
||||
iniUnescapedKey(iniSection, currentSection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user