Changeset View
Changeset View
Standalone View
Standalone View
src/mainwindow.cpp
Show First 20 Lines • Show All 927 Lines • ▼ Show 20 Line(s) | 927 | } else { | |||
---|---|---|---|---|---|
928 | new KRun(url, this); | 928 | new KRun(url, this); | ||
929 | } | 929 | } | ||
930 | } | 930 | } | ||
931 | 931 | | |||
932 | void MainWindow::readProperties(const KConfigGroup &config) | 932 | void MainWindow::readProperties(const KConfigGroup &config) | ||
933 | { | 933 | { | ||
934 | Core::readProperties(config); | 934 | Core::readProperties(config); | ||
935 | 935 | | |||
936 | #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) | ||||
936 | QSet<QString> activePlugins | 937 | QSet<QString> activePlugins | ||
937 | = QSet<QString>::fromList(config.readEntry("ActivePlugins", QStringList())); | 938 | = QSet<QString>::fromList(config.readEntry("ActivePlugins", QStringList())); | ||
939 | #else | ||||
940 | const auto activePluginList = config.readEntry("ActivePlugins", QStringList()); | ||||
941 | QSet<QString> activePlugins(activePluginList.begin(), activePluginList.end()); | ||||
942 | #endif | ||||
938 | 943 | | |||
939 | if (!activePlugins.isEmpty()) { | 944 | if (!activePlugins.isEmpty()) { | ||
940 | for (KontactInterface::Plugin *plugin : qAsConst(mPlugins)) { | 945 | for (KontactInterface::Plugin *plugin : qAsConst(mPlugins)) { | ||
941 | if (!plugin->isRunningStandalone() && activePlugins.contains(plugin->identifier())) { | 946 | if (!plugin->isRunningStandalone() && activePlugins.contains(plugin->identifier())) { | ||
942 | plugin->readProperties(config); | 947 | plugin->readProperties(config); | ||
943 | } | 948 | } | ||
944 | } | 949 | } | ||
945 | } | 950 | } | ||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |