From kde-commits Sun Oct 11 18:12:06 2009 From: =?utf-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 11 Oct 2009 18:12:06 +0000 To: kde-commits Subject: KDE/kdebase/workspace/kwin Message-Id: <1255284726.687555.19459.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125528473223037 SVN commit 1034001 by graesslin: It's possible that there is no active client. So check for it to crash less in alt+tab. BUG: 210223 M +2 -1 tabbox.cpp --- trunk/KDE/kdebase/workspace/kwin/tabbox.cpp #1034000:1034001 @@ -300,7 +300,8 @@ 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() )