Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/systemtray.cpp
Show First 20 Lines • Show All 530 Lines • ▼ Show 20 Line(s) | 530 | if (oldOwner.isEmpty()) { | |||
---|---|---|---|---|---|
531 | serviceRegistered(serviceName); | 531 | serviceRegistered(serviceName); | ||
532 | } else if (newOwner.isEmpty()) { | 532 | } else if (newOwner.isEmpty()) { | ||
533 | serviceUnregistered(serviceName); | 533 | serviceUnregistered(serviceName); | ||
534 | } | 534 | } | ||
535 | } | 535 | } | ||
536 | 536 | | |||
537 | void SystemTray::serviceRegistered(const QString &service) | 537 | void SystemTray::serviceRegistered(const QString &service) | ||
538 | { | 538 | { | ||
539 | if (service.startsWith(QLatin1Char(':'))) { | ||||
540 | return; | ||||
541 | } | ||||
542 | | ||||
539 | //qCDebug(SYSTEM_TRAY) << "DBus service appeared:" << service; | 543 | //qCDebug(SYSTEM_TRAY) << "DBus service appeared:" << service; | ||
540 | for (auto it = m_dbusActivatableTasks.constBegin(), end = m_dbusActivatableTasks.constEnd(); it != end; ++it) { | 544 | for (auto it = m_dbusActivatableTasks.constBegin(), end = m_dbusActivatableTasks.constEnd(); it != end; ++it) { | ||
541 | const QString &plugin = it.key(); | 545 | const QString &plugin = it.key(); | ||
542 | if (!m_allowedPlasmoids.contains(plugin)) { | 546 | if (!m_allowedPlasmoids.contains(plugin)) { | ||
543 | continue; | 547 | continue; | ||
544 | } | 548 | } | ||
545 | 549 | | |||
546 | const auto &rx = it.value(); | 550 | const auto &rx = it.value(); | ||
Show All 33 Lines |