Changeset View
Changeset View
Standalone View
Standalone View
src/server/plasmavirtualdesktop_interface.cpp
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Line(s) | 234 | { | |||
---|---|---|---|---|---|
241 | for (auto it = (*deskIt)->d->resources.constBegin(); it != (*deskIt)->d->resources.constEnd(); ++it) { | 241 | for (auto it = (*deskIt)->d->resources.constBegin(); it != (*deskIt)->d->resources.constEnd(); ++it) { | ||
242 | org_kde_plasma_virtual_desktop_send_removed(*it); | 242 | org_kde_plasma_virtual_desktop_send_removed(*it); | ||
243 | } | 243 | } | ||
244 | 244 | | |||
245 | for (auto it = d->resources.constBegin(); it != d->resources.constEnd(); ++it) { | 245 | for (auto it = d->resources.constBegin(); it != d->resources.constEnd(); ++it) { | ||
246 | org_kde_plasma_virtual_desktop_management_send_desktop_removed(*it, id.toUtf8().constData()); | 246 | org_kde_plasma_virtual_desktop_management_send_desktop_removed(*it, id.toUtf8().constData()); | ||
247 | } | 247 | } | ||
248 | 248 | | |||
249 | d->desktops.erase(deskIt); | | |||
250 | (*deskIt)->deleteLater(); | 249 | (*deskIt)->deleteLater(); | ||
250 | d->desktops.erase(deskIt); | ||||
251 | } | 251 | } | ||
252 | 252 | | |||
253 | QList <PlasmaVirtualDesktopInterface *> PlasmaVirtualDesktopManagementInterface::desktops() const | 253 | QList <PlasmaVirtualDesktopInterface *> PlasmaVirtualDesktopManagementInterface::desktops() const | ||
254 | { | 254 | { | ||
255 | Q_D(); | 255 | Q_D(); | ||
256 | return d->desktops; | 256 | return d->desktops; | ||
257 | } | 257 | } | ||
258 | 258 | | |||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |