From 551af5fcace7889ca0268fee1ea293e2d249de4f Mon Sep 17 00:00:00 2001 From: David Redondo Date: Mon, 1 Jul 2024 14:11:47 +0200 Subject: [PATCH] Initialize plugin and device name in KdeConnectPluginKcm constructor Currently they are only set from the setters which leads to surprising results when querying them after using the constructor to set them. --- core/kdeconnectpluginconfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/kdeconnectpluginconfig.cpp b/core/kdeconnectpluginconfig.cpp index 18def7853..83ac32401 100644 --- a/core/kdeconnectpluginconfig.cpp +++ b/core/kdeconnectpluginconfig.cpp @@ -30,6 +30,8 @@ KdeConnectPluginConfig::KdeConnectPluginConfig(QObject *parent) KdeConnectPluginConfig::KdeConnectPluginConfig(const QString &deviceId, const QString &pluginName, QObject *parent) : QObject(parent) , d(new KdeConnectPluginConfigPrivate()) + , m_deviceId(deviceId) + , m_pluginName(pluginName) { d->m_configDir = KdeConnectConfig::instance().pluginConfigDir(deviceId, pluginName); QDir().mkpath(d->m_configDir.path());