1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-06 09:57:43 +03:00

fix two crashes

--when deleting a copied dockView, unbind the sensitive signals
from dockView
--when deleting a copied dockView and the config windows syncGeometry
is called then it should first check in the dockView has a
layout
This commit is contained in:
Michail Vourlakos 2018-01-20 00:25:00 +02:00
parent 8244d3218e
commit 0120d8635b
2 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,7 @@ inline Qt::WindowFlags DockConfigView::wFlags() const
void DockConfigView::syncGeometry()
{
if (!m_dockView->containment() || !rootObject())
if (!m_dockView->managedLayout() || !m_dockView->containment() || !rootObject())
return;
const auto location = m_dockView->containment()->location();

View File

@ -557,6 +557,7 @@ void Layout::containmentDestroyed(QObject *cont)
}
if (view) {
view->disconnectSensitiveSignals();
view->deleteLater();
emit m_corona->docksCountChanged();