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

Port away from QSet::fromList

Summary: That's deprecated in latest Qt 5.14, breaking the build.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D27758
parent 6d3544ee
......@@ -933,8 +933,13 @@ void MainWindow::readProperties(const KConfigGroup &config)
{
Core::readProperties(config);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QSet<QString> activePlugins
= QSet<QString>::fromList(config.readEntry("ActivePlugins", QStringList()));
#else
const auto activePluginList = config.readEntry("ActivePlugins", QStringList());
QSet<QString> activePlugins(activePluginList.begin(), activePluginList.end());
#endif
if (!activePlugins.isEmpty()) {
for (KontactInterface::Plugin *plugin : qAsConst(mPlugins)) {
......
Markdown is supported
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