@@ -40,7 +40,6 @@ LauncherModel::LauncherModel(QObject *parent):
4040{
4141 connect(m_dbusIface, &DBusInterface::countChanged, this, &LauncherModel::countChanged);
4242 connect(m_dbusIface, &DBusInterface::countVisibleChanged, this, &LauncherModel::countVisibleChanged);
43− connect(m_dbusIface, &DBusInterface::runningChanged, this, &LauncherModel::runningChanged);
4443 connect(m_dbusIface, &DBusInterface::refreshCalled, this, &LauncherModel::refresh);
4544
4645 connect(m_settings, &GSettings::changed, this, &LauncherModel::refresh);
@@ -198,7 +197,9 @@ void LauncherModel::quickListActionInvoked(const QString &appId, int actionIndex
198197 } else if (actionId == "launch_item") {
199198 QDesktopServices::openUrl(getUrlForAppId(appId));
200199 } else if (actionId == "stop_item") { // Quit
201− m_appManager->stopApplication(appId);
200+ if (m_appManager) {
201+ m_appManager->stopApplication(appId);
202+ }
202203 // Nope, we don't know this action, let the backend forward it to the application
203204 } else {
204205 // TODO: forward quicklist action to app, possibly via m_dbusIface
@@ -335,17 +336,6 @@ void LauncherModel::progressChanged(const QString &appId, int progress)
335336 }
336337}
337338
338−void LauncherModel::runningChanged(const QString &appId, bool running)
339−{
340− const int idx = findApplication(appId);
341− if (idx >= 0) {
342− LauncherItem *item = m_list.at(idx);
343− item->setRunning(running);
344− m_asAdapter->syncItems(m_list);
345− Q_EMIT dataChanged(index(idx), index(idx), {RoleRunning});
346− }
347−}
348−
349339void LauncherModel::countChanged(const QString &appId, int count)
350340{
351341 const int idx = findApplication(appId);