Commit ae871853 authored by Volker Krause's avatar Volker Krause
Browse files

Don't rely on implicit QScopedPointer to bool conversion

No longer available in Qt6.
parent 3ee46882
Pipeline #146299 passed with stage
in 5 minutes and 32 seconds
......@@ -303,7 +303,7 @@ void KCMLookandFeel::save()
KSharedConfigPtr conf = KSharedConfig::openConfig(package.filePath("defaults"));
KConfigGroup cg(conf, "kdeglobals");
QScopedPointer<QStyle> newStyle(QStyleFactory::create(cg.readEntry("widgetStyle", QString())));
m_lnf->setApplyWidgetStyle(newStyle);
m_lnf->setApplyWidgetStyle(!newStyle.isNull());
}
ManagedConfigModule::save();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment