Changeset View
Changeset View
Standalone View
Standalone View
runners/sessions/sessionrunner.cpp
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 158 | if (switchUser && | |||
---|---|---|---|---|---|
166 | matches << match; | 166 | matches << match; | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | // now add the active sessions | 169 | // now add the active sessions | ||
170 | if (listAll || matchUser) { | 170 | if (listAll || matchUser) { | ||
171 | SessList sessions; | 171 | SessList sessions; | ||
172 | dm.localSessions(sessions); | 172 | dm.localSessions(sessions); | ||
173 | 173 | | |||
174 | foreach (const SessEnt& session, sessions) { | 174 | for (const SessEnt& session : qAsConst(sessions)) { | ||
175 | if (!session.vt || session.self) { | 175 | if (!session.vt || session.self) { | ||
176 | continue; | 176 | continue; | ||
177 | } | 177 | } | ||
178 | 178 | | |||
179 | QString name = KDisplayManager::sess2Str(session); | 179 | QString name = KDisplayManager::sess2Str(session); | ||
180 | Plasma::QueryMatch::Type type = Plasma::QueryMatch::NoMatch; | 180 | Plasma::QueryMatch::Type type = Plasma::QueryMatch::NoMatch; | ||
181 | qreal relevance = 0.7; | 181 | qreal relevance = 0.7; | ||
182 | 182 | | |||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |