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:
parent
8244d3218e
commit
0120d8635b
@ -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();
|
||||
|
@ -557,6 +557,7 @@ void Layout::containmentDestroyed(QObject *cont)
|
||||
}
|
||||
|
||||
if (view) {
|
||||
view->disconnectSensitiveSignals();
|
||||
view->deleteLater();
|
||||
|
||||
emit m_corona->docksCountChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user