From 0a45d9792d75af7c15491da81b8b4bdc17f1eb0d Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Wed, 27 Apr 2016 13:34:43 +0200 Subject: [PATCH] reload icon theme for iconitemtest as well --- autotests/iconitemtest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotests/iconitemtest.cpp b/autotests/iconitemtest.cpp index db63e4961..0304b2180 100644 --- a/autotests/iconitemtest.cpp +++ b/autotests/iconitemtest.cpp @@ -69,6 +69,11 @@ void IconItemTest::initTestCase() KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme"); plasmaConfig.writeEntry("name", "default"); + cg.sync(); // sync explicitly so it will be correctly parsed + KSharedConfig::openConfig()->reparseConfiguration(); + KIconTheme::reconfigure(); + KIconLoader::global()->reconfigure(QString()); + m_view = new QQuickView(); m_view->setSource(QUrl::fromLocalFile(QFINDTESTDATA("data/view.qml"))); m_view->show();