From a6118016ecdb097a4d99a5dc1500dc7813fce729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 17 Sep 2015 14:17:55 +0200 Subject: [PATCH] Reintroduce nullptr check in Client::removeFromMainClients Removed by accident in 69be73d3, of course needed and causes an unusable session due to kwin crashing when managing clients. Sorry! --- group.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index 784d64a98e..8648d4dcc5 100644 --- a/group.cpp +++ b/group.cpp @@ -598,7 +598,8 @@ void Client::setTransient(xcb_window_t new_transient_for_id) void Client::removeFromMainClients() { TRANSIENCY_CHECK(this); - transientFor()->removeTransient(this); + if (transientFor()) + transientFor()->removeTransient(this); if (groupTransient()) { for (ClientList::ConstIterator it = group()->members().constBegin(); it != group()->members().constEnd();