on xenial help sign in
Make sure all changes are carried with the dataChanged signal.
80bce0fMirco Müller
plugins/Greeter/Unity/Launcher/launchermodelas.cpp+7−1
@@ -211,7 +211,13 @@ void LauncherModel::refresh()
211 item->setCountVisible(cachedMap.value("countVisible").toBool());
211 item->setCountVisible(cachedMap.value("countVisible").toBool());
212 item->setProgress(cachedMap.value("progress").toInt());
212 item->setProgress(cachedMap.value("progress").toInt());
213 int idx = m_list.indexOf(item);
213 int idx = m_list.indexOf(item);
214− Q_EMIT dataChanged(index(idx), index(idx), QVector<int>() << RoleName << RoleIcon);
214+ Q_EMIT dataChanged(index(idx),
215+ index(idx),
216+ QVector<int>() << RoleName
217+ << RoleIcon
218+ << RoleCount
219+ << RoleCountVisible
220+ << RoleProgress);
215 }
221 }
216 break;
222 break;
217 }
223 }