[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/desktop/shell
From: Giulio Camuffo <giuliocamuffo () gmail ! com>
Date: 2010-12-16 15:53:37
Message-ID: 20101216155337.7A707AC8A8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1207022 by camuffo:
check for containment and corona validity, before using them. they could be null if \
the applet was removed from the scene.
BUG:255391
M +5 -1 panelapplethandle.cpp
--- trunk/KDE/kdebase/workspace/plasma/desktop/shell/panelapplethandle.cpp \
#1207021:1207022 @@ -126,10 +126,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