From 2f525b4c3479d0f55beca5e76e2fba3e3ef29c9f Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 15 Nov 2009 16:11:42 +0000 Subject: [PATCH] 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 --- clientgroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientgroup.cpp b/clientgroup.cpp index 874ee12121..b4f083ea72 100644 --- a/clientgroup.cpp +++ b/clientgroup.cpp @@ -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() )