Changeset View
Changeset View
Standalone View
Standalone View
src/kxmlguifactory.cpp
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Line(s) | 414 | { | |||
---|---|---|---|---|---|
424 | } | 424 | } | ||
425 | 425 | | |||
426 | // remove this client from our client list | 426 | // remove this client from our client list | ||
427 | d->m_clients.removeAll(client); | 427 | d->m_clients.removeAll(client); | ||
428 | 428 | | |||
429 | // remove child clients first (create a copy of the list just in case the | 429 | // remove child clients first (create a copy of the list just in case the | ||
430 | // original list is modified directly or indirectly in removeClient()) | 430 | // original list is modified directly or indirectly in removeClient()) | ||
431 | const QList<KXMLGUIClient *> childClients(client->childClients()); | 431 | const QList<KXMLGUIClient *> childClients(client->childClients()); | ||
432 | Q_FOREACH (KXMLGUIClient *child, childClients) { | 432 | for (KXMLGUIClient *child : childClients) { | ||
433 | removeClient(child); | 433 | removeClient(child); | ||
434 | } | 434 | } | ||
435 | 435 | | |||
436 | //qCDebug(DEBUG_KXMLGUI) << "calling removeRecursive"; | 436 | //qCDebug(DEBUG_KXMLGUI) << "calling removeRecursive"; | ||
437 | 437 | | |||
438 | d->pushState(); | 438 | d->pushState(); | ||
439 | 439 | | |||
440 | // cache some variables | 440 | // cache some variables | ||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |