diff options
| author | Alexander Lohnau <[email protected]> | 2021-12-27 17:35:09 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2022-01-02 10:04:56 +0100 |
| commit | e447b8829663cd31b3a460bad5ec5b0ac9c86eae (patch) | |
| tree | 999fd76c767b9ebb11b9d43ffeb2f9e007002b7a | |
| parent | f386f848dee5b895e859857af68dd5b170e639e1 (diff) | |
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
| -rw-r--r-- | src/settings/contextmenu/contextmenusettingspage.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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); } |
