sync the config so reparsing works

This commit is contained in:
Harald Sitter 2016-04-27 13:33:52 +02:00
parent e54d75fb80
commit 94943e21e8

View File

@ -53,6 +53,7 @@ void ThemeTest::initTestCase()
plasmaConfig.writeEntry("name", "default"); plasmaConfig.writeEntry("name", "default");
m_svg = new Plasma::Svg(); m_svg = new Plasma::Svg();
cg.sync(); // sync explicitly so it will be correctly parsed
KSharedConfig::openConfig()->reparseConfiguration(); KSharedConfig::openConfig()->reparseConfiguration();
KIconTheme::reconfigure(); KIconTheme::reconfigure();
KIconLoader::global()->reconfigure(QString()); KIconLoader::global()->reconfigure(QString());