Verified Commit 6da91d05 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
parent 276ce400
Pipeline #175589 passed with stage
in 12 minutes and 22 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)
......@@ -35,6 +36,8 @@ SystemTray::SystemTray(QObject *parent, const KPluginMetaData &data, const QVari
// 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