From 99b912e91e689eaf77a784c0ac81965657f19f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 13 Dec 2009 15:23:22 +0000 Subject: [PATCH] catch client_group on caption change, caused segfault after switchiing between tabbing and non-tabbing decos svn path=/trunk/KDE/kdebase/workspace/; revision=1062020 --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index ab2a1b9d45..203839ec3a 100644 --- a/client.cpp +++ b/client.cpp @@ -1628,7 +1628,8 @@ void Client::setCaption( const QString& _s, bool force ) if( isManaged() && decoration != NULL ) { - client_group->updateItems(); + if (client_group) + client_group->updateItems(); decoration->captionChange(); } }