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
This commit is contained in:
parent
09364cdac0
commit
fe3ff7b483
1 changed files with 2 additions and 1 deletions
|
@ -300,6 +300,7 @@ void TabBox::reset( bool partial_reset )
|
||||||
m_tabBox->createModel( partial_reset );
|
m_tabBox->createModel( partial_reset );
|
||||||
if( !partial_reset )
|
if( !partial_reset )
|
||||||
{
|
{
|
||||||
|
if( workspace()->activeClient() )
|
||||||
setCurrentClient( workspace()->activeClient() );
|
setCurrentClient( workspace()->activeClient() );
|
||||||
// it's possible that the active client is not part of the model
|
// it's possible that the active client is not part of the model
|
||||||
// in that case the index is invalid
|
// in that case the index is invalid
|
||||||
|
|
Loading…
Reference in a new issue