Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/recentusagemodel.cpp
Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | 272 | if (actionId.isEmpty() && withinBounds) { | |||
---|---|---|---|---|---|
287 | quint32 timeStamp = 0; | 287 | quint32 timeStamp = 0; | ||
288 | 288 | | |||
289 | #if HAVE_X11 | 289 | #if HAVE_X11 | ||
290 | if (QX11Info::isPlatformX11()) { | 290 | if (QX11Info::isPlatformX11()) { | ||
291 | timeStamp = QX11Info::appUserTime(); | 291 | timeStamp = QX11Info::appUserTime(); | ||
292 | } | 292 | } | ||
293 | #endif | 293 | #endif | ||
294 | 294 | | |||
295 | new KRun(QUrl::fromLocalFile(service->entryPath()), 0, true, | 295 | // TODO Once we depend on KDE Frameworks 5.24 and D1902 is merged, use KRun::runApplication instead | ||
296 | KStartupInfo::createNewStartupIdForTimestamp(timeStamp)); | 296 | KRun::runService(*service, {}, nullptr, true, {}, KStartupInfo::createNewStartupIdForTimestamp(timeStamp)); | ||
297 | 297 | | |||
298 | KActivities::ResourceInstance::notifyAccessed(QUrl("applications:" + storageId), | 298 | KActivities::ResourceInstance::notifyAccessed(QUrl("applications:" + storageId), | ||
299 | "org.kde.plasma.kicker"); | 299 | "org.kde.plasma.kicker"); | ||
300 | 300 | | |||
301 | return true; | 301 | return true; | ||
302 | } else if (actionId == "forget" && withinBounds) { | 302 | } else if (actionId == "forget" && withinBounds) { | ||
303 | if (m_activitiesModel) { | 303 | if (m_activitiesModel) { | ||
304 | QModelIndex idx = sourceModel()->index(row, 0); | 304 | QModelIndex idx = sourceModel()->index(row, 0); | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |