From fe3ff7b483a9351821d2a4cad7d7cd179419d833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 11 Oct 2009 18:12:06 +0000 Subject: [PATCH] It's possible that there is no active client. So check for it to crash less in alt+tab. BUG: 210223 svn path=/trunk/KDE/kdebase/workspace/; revision=1034001 --- tabbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabbox.cpp b/tabbox.cpp index 62f28ee297..e54d6083ad 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -300,7 +300,8 @@ void TabBox::reset( bool partial_reset ) m_tabBox->createModel( partial_reset ); if( !partial_reset ) { - setCurrentClient( workspace()->activeClient() ); + if( workspace()->activeClient() ) + setCurrentClient( workspace()->activeClient() ); // it's possible that the active client is not part of the model // in that case the index is invalid if( !m_index.isValid() )