fix yet another fun-with-pointers tabbing segfault

BUG: 281596
(cherry picked from commit f3ca7234ef4329b45bcd369aa49a70972a754302)
This commit is contained in:
Thomas Lübking 2011-09-08 22:19:41 +02:00
parent 6cd271598e
commit c071056913

View file

@ -320,7 +320,7 @@ bool Client::manage(Window w, bool isMapped)
if (!noBorder()) {
client_group = NULL;
// Automatically add to previous groups on session restore
if (session && session->clientGroupClient && session->clientGroupClient != this)
if (session && session->clientGroupClient && session->clientGroupClient != this && session->clientGroupClient->clientGroup())
session->clientGroupClient->clientGroup()->add(this, -1, true);
else if (isMapped)
// If the window is already mapped (Restarted KWin) add any windows that already have the