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

List:       kde-commits
Subject:    branches/KDE/4.5/kdebase/workspace/plasma/desktop/shell
From:       Giulio Camuffo <giuliocamuffo () gmail ! com>
Date:       2010-12-16 15:56:46
Message-ID: 20101216155647.00070AC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1207024 by camuffo:

backport r1207022: check for containment and corona validity, before using them. they \
could be null if the applet was  removed from the scene.


 M  +5 -1      panelapplethandle.cpp  


--- branches/KDE/4.5/kdebase/workspace/plasma/desktop/shell/panelapplethandle.cpp \
#1207023:1207024 @@ -128,10 +128,14 @@
     if (!applet) {
         return;
     }
+    Plasma::Containment *containment = applet->containment();
+    if (!containment || !containment->corona()) {
+        return;
+    }
 
     if (isVisible()) {
         m_moveAnimation->setStartValue(pos());
-        m_moveAnimation->setEndValue(applet->containment()->corona()->popupPosition(applet, \
size(), Qt::AlignCenter)); +        \
m_moveAnimation->setEndValue(containment->corona()->popupPosition(applet, size(), \
Qt::AlignCenter));  m_moveAnimation->setDuration(250);
         m_moveAnimation->start();
     } else {


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

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