From 1a0637b627611c3fe76379542b9eb90735b742b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 4 Jan 2007 17:03:04 +0000 Subject: [PATCH] Properly add a window to a group. BUG: 139180 svn path=/trunk/KDE/kdebase/workspace/; revision=619874 --- group.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/group.cpp b/group.cpp index c61ec70580..9e7d0139f4 100644 --- a/group.cpp +++ b/group.cpp @@ -994,10 +994,11 @@ void Client::checkGroup( Group* set_group, bool force ) in_group->removeMember( this ); in_group = NULL; } - in_group = new_group; - if( in_group == NULL ) + if( new_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 ); } }