mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-06 16:58:17 +03:00
disconnect all the signals in the destruction
This commit is contained in:
parent
c42250d9bb
commit
6da8142351
@ -92,15 +92,11 @@ DockView::~DockView()
|
||||
{
|
||||
qDebug() << "dock view deleting...";
|
||||
|
||||
foreach (auto &var, connections) {
|
||||
QObject::disconnect(var);
|
||||
}
|
||||
|
||||
this->disconnect();
|
||||
qDebug() << "dock view connections deleted...";
|
||||
|
||||
if (m_visibility) {
|
||||
delete m_visibility.data();
|
||||
m_visibility.clear();
|
||||
delete m_visibility;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,6 @@ private:
|
||||
QPointer<PlasmaQuick::ConfigView> m_configView;
|
||||
QPointer<VisibilityManager> m_visibility;
|
||||
QList<PlasmaQuick::AppletQuickItem *> m_appletItems;
|
||||
QList<QMetaObject::Connection> connections;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user