From: Alexander Lohnau Date: Mon, 27 Dec 2021 16:35:09 +0000 (+0100) Subject: Version control plugins: Remove defunct KServiceTypeTrader query for available plugins X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e447b8829663cd31b3a460bad5ec5b0ac9c86eae Version control plugins: Remove defunct KServiceTypeTrader query for available plugins We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings --- diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp index cfbfefe52..a4e8225e2 100644 --- a/src/settings/contextmenu/contextmenusettingspage.cpp +++ b/src/settings/contextmenu/contextmenusettingspage.cpp @@ -338,18 +338,6 @@ void ContextMenuSettingsPage::loadVersionControlSystems() loadedPlugins += pluginName; } - const KService::List pluginServices = KServiceTypeTrader::self()->query(QStringLiteral("FileViewVersionControlPlugin")); - for (const auto &plugin : pluginServices) { - const QString pluginName = plugin->name(); - if (loadedPlugins.contains(pluginName)) { - continue; - } - addRow(QStringLiteral("code-class"), - pluginName, - VersionControlServicePrefix + pluginName, - enabledPlugins.contains(pluginName)); - } - m_sortModel->sort(Qt::DisplayRole); }