plasma: fix systemtray deadlock

the applet has to be disconnected because when the applet is destroyed (by
the qDeleteAll() call) it triggers layout update

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-10-21 20:36:05 +03:00
parent e728419f56
commit d5f68610e6

View file

@ -146,6 +146,7 @@ void SystemTrayApplet::slotUpdateLayout()
m_popuptimer->stop();
QMutexLocker locker(&m_mutex);
foreach (Plasma::Applet* plasmaapplet, m_applets) {
disconnect(plasmaapplet, 0, this, 0);
m_layout->removeItem(plasmaapplet);
}
qDeleteAll(m_applets);