From 5d0b2c4c73de95dbbbaa80426d13d7f28d2d9b60 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 14 Dec 2023 00:45:39 +0100 Subject: [PATCH] Fix opening runcommand settings We only get the device id via args, not the plugin id We also don't need it, we can get the plugin id from the metadata --- kcmplugin/kdeconnectpluginkcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmplugin/kdeconnectpluginkcm.cpp b/kcmplugin/kdeconnectpluginkcm.cpp index 0f6668a5c..66e7481c9 100644 --- a/kcmplugin/kdeconnectpluginkcm.cpp +++ b/kcmplugin/kdeconnectpluginkcm.cpp @@ -14,7 +14,7 @@ KdeConnectPluginKcm::KdeConnectPluginKcm(QObject *parent, const KPluginMetaData #endif , m_deviceId(args.at(0).toString()) // The plugin name is the KCMs ID with the postfix removed - , m_config(new KdeConnectPluginConfig(m_deviceId, args.at(1).toString().remove(QLatin1String("_config")), this)) + , m_config(new KdeConnectPluginConfig(m_deviceId, data.pluginId().remove(QLatin1String("_config")), this)) { Q_ASSERT(data.isValid()); // Even if we have empty metadata, it should be valid! }