[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kwin
From:       Martin Gräßlin <ubuntu () martin-graesslin ! com>
Date:       2009-10-11 18:12:06
Message-ID: 1255284726.687555.19459.nullmailer () svn ! kde ! org
[Download RAW message or body]

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() )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic