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!
icc-effect-5.14.5
Martin Gräßlin 2015-09-17 14:17:55 +02:00
parent 9988fa9d74
commit a6118016ec
1 changed files with 2 additions and 1 deletions

View File

@ -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();