| Summary: | removing applets from menubar via "Remove from Menubar"->"Applet"->"foo bar" removes wrong applet | ||
|---|---|---|---|
| Product: | [Plasma] plasma-integration | Reporter: | Michael Olbrich <michael.olbrich> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bobbyrfried |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.5 | ||
| Target Milestone: | --- | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Michael Olbrich
2005-10-07 14:49:06 UTC
SVN commit 468345 by aseigo:
remove the correct applet even when only some are immutable
BUG:114023
M +5 -3 removeapplet_mnu.cpp
--- branches/KDE/3.5/kdebase/kicker/kicker/ui/removeapplet_mnu.cpp #468344:468345
@@ -52,19 +52,21 @@
QValueList<PanelMenuItemInfo> items;
for (BaseContainer::List::const_iterator it = m_containers.constBegin();
- it != m_containers.constEnd();
- ++it)
+ it != m_containers.constEnd();)
{
BaseContainer* container = *it;
if (container->isImmutable())
{
+ it = ++it;
+ m_containers.remove(container);
continue;
}
items.append(PanelMenuItemInfo(container->icon(),
container->visibleName().replace("&", "&&"),
id));
- id++;
+ ++id;
+ ++it;
}
qHeapSort(items);
|