after the latest activities refactor, containments weren't
deleted anymore upon activity deletion.
Details
Details
created and deleted activities while monitoring how appletsrc file
was updated
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
why not? m_desktopContainments is a QHash<QString, QSet<Plasma::Containment *> > indexed by activity, if i don't update it manually here, it will stay full of dangling stuff..
Comment Actions
But it also tracks them and deletes when an object is removed:
ShellCorona::desktopContainmentDestroyed
If you manually do it as well you're throwing all sense of a design pattern out the window and having it sometimes update the list before removal, sometimes after. Inconsistencies lead to bugs.