diff --git a/ksldapp.cpp b/ksldapp.cpp --- a/ksldapp.cpp +++ b/ksldapp.cpp @@ -555,7 +555,10 @@ } m_greeterClientConnection = m_waylandDisplay->createClient(sx[0]); connect(m_greeterClientConnection, &QObject::destroyed, this, - [this] { + [this] (QObject *destroyedObject) { + if (destroyedObject != m_greeterClientConnection) { + return; + } m_greeterClientConnection = nullptr; emit greeterClientConnectionChanged(); }