From fbf14306d7677ca9c860e3fcbce31f535a0801ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 29 Jan 2016 12:59:39 +0100 Subject: [PATCH] Set Workspace::m_compositor to null when Compositor gets destroyed Fixes regression from 1998d5ac1ad92011505f0e00761ccc618099fa19. BUG: 358722 REVIEW: 126925 --- workspace.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/workspace.cpp b/workspace.cpp index c360fb0788..9d6895d3c9 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -194,6 +194,7 @@ Workspace::Workspace(const QString &sessionKey) m_compositor = Compositor::create(this); } connect(this, &Workspace::currentDesktopChanged, m_compositor, &Compositor::addRepaintFull); + connect(m_compositor, &QObject::destroyed, this, [this] { m_compositor = nullptr; }); auto decorationBridge = Decoration::DecorationBridge::create(this); decorationBridge->init();