Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/plugin/smartlaunchers/smartlauncheritem.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
115 | 115 | | |||
116 | void Item::setLauncherUrl(const QUrl &launcherUrl) | 116 | void Item::setLauncherUrl(const QUrl &launcherUrl) | ||
117 | { | 117 | { | ||
118 | if (launcherUrl != m_launcherUrl) { | 118 | if (launcherUrl != m_launcherUrl) { | ||
119 | m_launcherUrl = launcherUrl; | 119 | m_launcherUrl = launcherUrl; | ||
120 | emit launcherUrlChanged(launcherUrl); | 120 | emit launcherUrlChanged(launcherUrl); | ||
121 | 121 | | |||
122 | m_storageId.clear(); | 122 | m_storageId.clear(); | ||
123 | clear(); | ||||
123 | 124 | | |||
124 | if (launcherUrl.scheme() == QStringLiteral("applications")) { | 125 | if (launcherUrl.scheme() == QStringLiteral("applications")) { | ||
125 | const KService::Ptr service = KService::serviceByMenuId(launcherUrl.path()); | 126 | const KService::Ptr service = KService::serviceByMenuId(launcherUrl.path()); | ||
126 | 127 | | |||
127 | if (service && launcherUrl.path() == service->menuId()) { | 128 | if (service && launcherUrl.path() == service->menuId()) { | ||
128 | m_storageId = service->menuId(); | 129 | m_storageId = service->menuId(); | ||
129 | } | 130 | } | ||
130 | } | 131 | } | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |