Call QConfFileSettingsPrivate::initAccess normally on WASM
QConfFileSettingsPrivate::initAccess is not async, as the commit introducing compile guards around initAccess in ctor of QConfFileSettingsPrivate suggests. Calling initAccess is necessary to read stats from a conf file. This makes 50 more tests in tst_qsettings pass. Task-number: QTBUG-115509 Change-Id: I99e8970413a14d7b595be23d42bf46faa26b3dd7 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
parent
0f4fb0bf20
commit
113faf1576
@ -1110,9 +1110,7 @@ QConfFileSettingsPrivate::QConfFileSettingsPrivate(QSettings::Format format,
|
|||||||
confFiles.append(QConfFile::fromName(systemPath.path + orgFile, false));
|
confFiles.append(QConfFile::fromName(systemPath.path + orgFile, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef Q_OS_WASM // wasm needs to delay access until after file sync
|
|
||||||
initAccess();
|
initAccess();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QConfFileSettingsPrivate::QConfFileSettingsPrivate(const QString &fileName,
|
QConfFileSettingsPrivate::QConfFileSettingsPrivate(const QString &fileName,
|
||||||
|
Loading…
Reference in New Issue
Block a user