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

List:       kde-commits
Subject:    branches/KDE/4.2/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-01-07 16:44:26
Message-ID: 1231346666.384904.28941.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 907207 by aseigo:

protect access to toolBox pointer
CCBUG:179909


 M  +6 -4      containment.cpp  


--- branches/KDE/4.2/kdelibs/plasma/containment.cpp #907206:907207
@@ -1597,10 +1597,12 @@
             a->updateConstraints(ImmutableConstraint);
         }
 
-        if (type == Containment::PanelContainment || type == Containment::CustomPanelContainment) {
-            toolBox->setVisible(unlocked);
-        } else {
-            toolBox->setIsMovable(unlocked);
+        if (toolBox) {
+            if (type == Containment::PanelContainment || type == Containment::CustomPanelContainment) {
+                toolBox->setVisible(unlocked);
+            } else {
+                toolBox->setIsMovable(unlocked);
+            }
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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