Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/container/systemtraycontainer.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
63 | 63 | | |||
64 | Plasma::Corona *c = cont->corona(); | 64 | Plasma::Corona *c = cont->corona(); | ||
65 | if (!c) { | 65 | if (!c) { | ||
66 | return; | 66 | return; | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | uint id = config().readEntry("SystrayContainmentId", 0); | 69 | uint id = config().readEntry("SystrayContainmentId", 0); | ||
70 | if (id > 0) { | 70 | if (id > 0) { | ||
71 | foreach (Plasma::Containment *candidate, c->containments()) { | 71 | const auto containments = c->containments(); | ||
72 | for (Plasma::Containment *candidate : containments) { | ||||
72 | if (candidate->id() == id) { | 73 | if (candidate->id() == id) { | ||
73 | m_innerContainment = candidate; | 74 | m_innerContainment = candidate; | ||
74 | break; | 75 | break; | ||
75 | } | 76 | } | ||
76 | } | 77 | } | ||
77 | qCDebug(SYSTEM_TRAY_CONTAINER) << "Containment id" << id << "that used to be a system tray was deleted"; | 78 | qCDebug(SYSTEM_TRAY_CONTAINER) << "Containment id" << id << "that used to be a system tray was deleted"; | ||
78 | //id = 0; | 79 | //id = 0; | ||
79 | } | 80 | } | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |