@@ -103,7 +103,7 @@ void LauncherModel::setAlerting(const QString &appId, bool alerting) {
103103 LauncherItem *item = m_list.at(index);
104104 if (!item->focused()) {
105105 item->setAlerting(alerting);
106− Q_EMIT dataChanged(modelIndex, modelIndex, QVector<int>() << RoleAlerting);
106+ Q_EMIT dataChanged(modelIndex, modelIndex, {RoleAlerting});
107107 }
108108 }
109109}
@@ -415,10 +415,19 @@ void LauncherModel::refresh()
415415 } else {
416416 int idx = m_list.indexOf(item);
417417 item->setName(desktopFile.displayName());
418− item->setIcon(desktopFile.icon());
419418 item->setPinned(item->pinned()); // update pinned text if needed
420419 item->setRunning(item->running());
421− Q_EMIT dataChanged(index(idx), index(idx), {RoleName, RoleIcon, RoleRunning});
420+ Q_EMIT dataChanged(index(idx), index(idx), {RoleName, RoleRunning});
421+
422+ const QString oldIcon = item->icon();
423+ if (oldIcon == desktopFile.icon()) { // same icon file, perhaps different contents, simulate changing the icon name to force reload
424+ item->setIcon(QString());
425+ Q_EMIT dataChanged(index(idx), index(idx), {RoleIcon});
426+ }
427+
428+ // now set the icon for real
429+ item->setIcon(desktopFile.icon());
430+ Q_EMIT dataChanged(index(idx), index(idx), {RoleIcon});
422431 }
423432 }
424433
@@ -490,7 +499,7 @@ void LauncherModel::alert(const QString &appId)
490499 if (idx >= 0) {
491500 LauncherItem *item = m_list.at(idx);
492501 setAlerting(item->appId(), true);
493− Q_EMIT dataChanged(index(idx), index(idx), QVector<int>() << RoleAlerting);
502+ Q_EMIT dataChanged(index(idx), index(idx), {RoleAlerting});
494503 }
495504}
496505