Properly add a window to a group.

BUG: 139180


svn path=/trunk/KDE/kdebase/workspace/; revision=619874
This commit is contained in:
Luboš Luňák 2007-01-04 17:03:04 +00:00
parent f52407b829
commit 1a0637b627

View file

@ -994,10 +994,11 @@ void Client::checkGroup( Group* set_group, bool force )
in_group->removeMember( this ); in_group->removeMember( this );
in_group = NULL; in_group = NULL;
} }
in_group = new_group; if( new_group == NULL )
if( in_group == NULL ) new_group = new Group( None, workspace() );
if( in_group != new_group )
{ {
in_group = new Group( None, workspace()); in_group = new_group;
in_group->addMember( this ); in_group->addMember( this );
} }
} }