on xenial help sign in
Fix the dataChanged index.
commitdeafa96ea472cbada7387e53a1dddd254042ee98 authorPawel Stolowski <pawel.stolowski@canonical.com> dateMon 2 Sep 2013, 16:44 (13 years ago) parent3277d049a87775
1 file changed+2−2
plugins/Unity/categories.cpp+2−2
plugins/Unity/categories.cpp+2−2
@@ -159,8 +159,8 @@ void Categories::onRowCountChanged()
159159 const int mappedIndex = m_categoryOrder.indexOf(i);
160160 QVector<int> roles;
161161 roles.append(RoleCount);
162− QModelIndex changedIndex = index(mappedIndex);
163− qDebug() << "Overriden model" << id << "count update at index" << mappedIndex;
162+ QModelIndex changedIndex = index(i);
163+ qDebug() << "Overriden model" << id << "count update at index" << i;
164164 Q_EMIT dataChanged(changedIndex, changedIndex, roles);
165165 break;
166166 }