[education/rkward] rkward/windows: Remove redudant check for kate plugin service type.

Thomas Friedrichsmeier null at kde.org
Wed Aug 3 15:57:06 BST 2022


Git commit c99c4ee54c9f99d613f22de221fd32d7c0294191 by Thomas Friedrichsmeier.
Committed on 03/08/2022 at 14:56.
Pushed by tfry into branch 'master'.

Remove redudant check for kate plugin service type.

See https://invent.kde.org/utilities/kate/-/merge_requests/822

M  +1    -1    rkward/windows/katepluginintegration.cpp

https://invent.kde.org/education/rkward/commit/c99c4ee54c9f99d613f22de221fd32d7c0294191

diff --git a/rkward/windows/katepluginintegration.cpp b/rkward/windows/katepluginintegration.cpp
index 2d2d7a6a..b7de5163 100644
--- a/rkward/windows/katepluginintegration.cpp
+++ b/rkward/windows/katepluginintegration.cpp
@@ -50,7 +50,7 @@ KatePluginIntegrationApp::KatePluginIntegrationApp(QObject *parent) : QObject (p
 #if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5,89,0)
 	QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("ktexteditor"));
 #else
-	QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("ktexteditor"), [](const KPluginMetaData &md) { return md.serviceTypes().contains(QLatin1String("KTextEditor/Plugin")); });
+	QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("ktexteditor"), [](const KPluginMetaData &) { return true; });
 #endif
 	for (int i = plugins.size() -1; i >= 0; --i) {
 		PluginInfo info;


More information about the rkward-tracker mailing list