Fix the ClientGroup::add() check to make sure the client isn't already a

part of a group.

svn path=/trunk/KDE/kdebase/workspace/; revision=1049643
This commit is contained in:
Lucas Murray 2009-11-15 16:11:42 +00:00
parent 88a85b1b61
commit 2f525b4c34

View file

@ -53,7 +53,7 @@ void ClientGroup::add( Client* c, int before, bool becomeVisible )
return;
// Client must not already be grouped
assert( c->clientGroup()->clients().size() == 1 );
assert( !c->clientGroup() || c->clientGroup()->clients().size() == 1 );
// Tabbed windows MUST have a decoration
if( c->noBorder() )