on xenial help sign in
emit dataChanged(Running) correctly when the app appears/disappears
commitf127d7e42207c2ac867320ccb23aade6bfcd33ea authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 7 Jul 2015, 16:39 (11 years ago) parent12d648f
1 file changed+2−2
plugins/Unity/Launcher/launchermodel.cpp+2−2
plugins/Unity/Launcher/launchermodel.cpp+2−2
@@ -504,8 +504,8 @@ 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});
508507 }
508+ Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRunning});
509509}
510510
511511void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
@@ -533,7 +533,7 @@ void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
533533 m_list.takeAt(appIndex)->deleteLater();
534534 endRemoveRows();
535535 m_asAdapter->syncItems(m_list);
536− Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned});
536+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned, RoleRunning});
537537 }
538538 Q_EMIT dataChanged(index(appIndex), index(appIndex), {RoleRunning});
539539}