Forward port rev 1134110: Fix crash when trying to group a window without decorations.

CCBUG: 222816

svn path=/trunk/KDE/kdebase/workspace/; revision=1134111
This commit is contained in:
Martin Gräßlin 2010-06-03 12:53:29 +00:00
parent fa2318b374
commit 0e2f0eb20d

View file

@ -428,7 +428,7 @@ void Workspace::initAddToTabGroup()
void Workspace::slotAddToTabGroup( QAction* action )
{
if( !action->data().isValid() )
if( !action->data().isValid() || !active_popup_client->clientGroup() )
return;
moveItemToClientGroup( active_popup_client->clientGroup(),
active_popup_client->clientGroup()->indexOfClient( active_popup_client ),