Safety++
Just to be sure, dear Bernhard, please double check that this does really fix the crash for you. =) BUG: 162436 Signed-off-by: Riccardo Iaconelli <riccardo@kde.org> svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812085
This commit is contained in:
parent
c3b5446a59
commit
a2fb80dd0e
@ -408,16 +408,18 @@ void AppletHandle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
QList<Containment*> containments = corona->containments();
|
||||
for (int i = 0; i < containments.size(); ++i) {
|
||||
QPointF pos;
|
||||
pos = containments[i]->view()->mapToScene(containments[i]->view()
|
||||
->mapFromGlobal(m_screenRect.topLeft()));
|
||||
if (containments[i]->view()) {
|
||||
pos = containments[i]->view()->mapToScene(containments[i]->view()
|
||||
->mapFromGlobal(m_screenRect.topLeft()));
|
||||
|
||||
if (containments[i]->sceneBoundingRect().contains(pos)) {
|
||||
//kDebug() << "new containment = " << containments[i];
|
||||
kDebug() << "rect = " << containments[i]->sceneBoundingRect();
|
||||
// add the applet to the new containment and take it from the old one
|
||||
kDebug() << "moving to other containment with position" << pos;;
|
||||
switchContainment(containments[i], pos);
|
||||
break;
|
||||
if (containments[i]->sceneBoundingRect().contains(pos)) {
|
||||
//kDebug() << "new containment = " << containments[i];
|
||||
kDebug() << "rect = " << containments[i]->sceneBoundingRect();
|
||||
// add the applet to the new containment and take it from the old one
|
||||
kDebug() << "moving to other containment with position" << pos;;
|
||||
switchContainment(containments[i], pos);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user