on xenial help sign in
no need to emit RoleRunning twice
32a3b24Lukáš Tinkl
plugins/Unity/Launcher/launchermodel.cpp+1−1
@@ -533,7 +533,7 @@ void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
533 m_list.takeAt(appIndex)->deleteLater();
533 m_list.takeAt(appIndex)->deleteLater();
534 endRemoveRows();
534 endRemoveRows();
535 m_asAdapter->syncItems(m_list);
535 m_asAdapter->syncItems(m_list);
536− Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned, RoleRunning});
536+ Q_EMIT dataChanged(index(appIndex), index(appIndex), {RolePinned});
537 }
537 }
538 Q_EMIT dataChanged(index(appIndex), index(appIndex), {RoleRunning});
538 Q_EMIT dataChanged(index(appIndex), index(appIndex), {RoleRunning});
539}
539}