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

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/workspace/kwin
From:       Nicolas Lécureuil <nlecureuil () mandriva ! com>
Date:       2010-06-03 10:54:49
Message-ID: 20100603105449.C1117AC8CA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1134074 by nlecureuil:

Fix crash in kwin
BUG: 240464


 M  +6 -0      useractions.cpp  


--- branches/KDE/4.4/kdebase/workspace/kwin/useractions.cpp #1134073:1134074
@@ -964,6 +964,8 @@
             break;
         case Options::MouseLeftGroupWindow:
             {
+            if( clientGroup() ) 
+                {
             int c_id = clientGroup()->indexOfClient( this );
             int size = clientGroup()->clients().count();
             if( c_id > 0 )
@@ -971,9 +973,12 @@
             else
                 clientGroup()->setVisible( size - 1 );
             }
+            }
             break;
         case Options::MouseRightGroupWindow:
             {
+            if( clientGroup() ) 
+                {
             int c_id = clientGroup()->indexOfClient( this );
             int size = clientGroup()->clients().count();
             if( c_id < size - 1 )
@@ -981,6 +986,7 @@
             else
                 clientGroup()->setVisible( 0 );
             }
+            }
             break;
         case Options::MouseClose:
             closeWindow();
[prev in list] [next in list] [prev in thread] [next in thread] 

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