Clear handles when we go immutable. Also remove an out-of-date TODO.
BUG: 166004 CCMAIL: panel-devel@kde.org Should be backported. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=832059
This commit is contained in:
parent
d286c118e0
commit
cffda2ec3f
@ -845,8 +845,6 @@ bool Containment::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
||||
d->handles[applet]->startFading(AppletHandle::FadeIn, he->pos());
|
||||
} else {
|
||||
//kDebug() << "generated applet handle";
|
||||
//TODO: there should be a small delay on showing these. they pop up too quickly/easily
|
||||
// right now
|
||||
AppletHandle *handle = new AppletHandle(this, applet, he->pos());
|
||||
d->handles[applet] = handle;
|
||||
connect(handle, SIGNAL(disappearDone(AppletHandle*)),
|
||||
@ -1076,6 +1074,13 @@ void ContainmentPrivate::toggleDesktopImmutability()
|
||||
}
|
||||
}
|
||||
|
||||
if (q->immutability() != Mutable) {
|
||||
foreach (AppletHandle* handle, handles) {
|
||||
handle->deleteLater();
|
||||
}
|
||||
handles.clear();
|
||||
}
|
||||
|
||||
//setLockToolText();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user