on xenial help sign in
emit dataChanged
commit12d648fa7ee9e06146cdf80fb8ff66dc3f9b1314 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 7 Jul 2015, 16:08 (11 years ago) parent2b42fc5
1 file changed+3
plugins/Unity/Launcher/launchermodel.cpp+3
plugins/Unity/Launcher/launchermodel.cpp+3
@@ -504,6 +504,7 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
504504 m_list.append(item);
505505 endInsertRows();
506506 m_asAdapter->syncItems(m_list);
507+ Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRunning});
507508 }
508509}
509510
@@ -532,7 +533,9 @@ void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
532533 m_list.takeAt(appIndex)->deleteLater();
533534 endRemoveRows();
534535 m_asAdapter->syncItems(m_list);
536+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned});
535537 }
538+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RoleRunning});
536539}
537540
538541void LauncherModel::focusedAppIdChanged()