on xenial help sign in
emit dataChanged
12d648fLukáš Tinkl
plugins/Unity/Launcher/launchermodel.cpp+3
@@ -504,6 +504,7 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
504 m_list.append(item);
504 m_list.append(item);
505 endInsertRows();
505 endInsertRows();
506 m_asAdapter->syncItems(m_list);
506 m_asAdapter->syncItems(m_list);
507+ Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRunning});
507 }
508 }
508}
509}
509
510
@@ -532,7 +533,9 @@ void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
532 m_list.takeAt(appIndex)->deleteLater();
533 m_list.takeAt(appIndex)->deleteLater();
533 endRemoveRows();
534 endRemoveRows();
534 m_asAdapter->syncItems(m_list);
535 m_asAdapter->syncItems(m_list);
536+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned});
535 }
537 }
538+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RoleRunning});
536}
539}
537
540
538void LauncherModel::focusedAppIdChanged()
541void LauncherModel::focusedAppIdChanged()