1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-30 14:50:12 +03:00

fix #257,crash alternative session & !compositing

This commit is contained in:
Michail Vourlakos 2017-03-13 20:58:31 +02:00
parent 21adfccc51
commit d71cabb016

View File

@ -124,13 +124,13 @@ DockView::~DockView()
m_screenSyncTimer.stop();
qDebug() << "dock view deleting...";
rootContext()->setContextProperty(QStringLiteral("dock"), nullptr);
this->disconnect();
qDebug() << "dock view connections deleted...";
/*if (m_configView) {
m_configView->hide();
m_configView->deleteLater();
}*/
//! this disconnect does not free up connections correctly when
//! dockView is deleted. A crash for this example is the following:
//! switch to Alternative Session and disable compositing,
//! the signal creating the crash was probably from deleted
//! windows.
//! this->disconnect();
if (m_visibility)
delete m_visibility;