Commit b7a148ec authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/systemtray: disconnect KConfigLoader signal when instance is about to be deleted

When an applet is about to be deleted, it will save its config
automatically, but in this case the system tray doesn't need to load the
config again.

BUG: 453726


(cherry picked from commit 6da91d05)
parent 7b692d6a
Pipeline #175590 passed with stage
in 11 minutes and 19 seconds
......@@ -24,6 +24,7 @@
#include <KAcceleratorManager>
#include <KActionCollection>
#include <KConfigLoader>
SystemTray::SystemTray(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: Plasma::Containment(parent, data, args)
......@@ -40,6 +41,8 @@ SystemTray::SystemTray(QObject *parent, const KPluginMetaData &data, const QVari
SystemTray::~SystemTray()
{
// When the applet is about to be deleted, delete now to avoid calling loadConfig()
delete m_settings;
}
void SystemTray::init()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment