on xenial help sign in
Some more debug.
commit3277d048618dd4e2fbcdff5c454e82cdc5cd9580 authorPawel Stolowski <pawel.stolowski@canonical.com> dateThu 29 Aug 2013, 17:19 (13 years ago) parenteea38b5
1 file changed+3−3
plugins/Unity/categories.cpp+3−3
plugins/Unity/categories.cpp+3−3
@@ -285,12 +285,12 @@ Categories::data(const QModelIndex& index, int role) const
285285 auto id = DeeListModel::data(realIndex, CategoryColumn::ID).toString();
286286 if (m_overriddenCategories.find(id) != m_overriddenCategories.end())
287287 {
288− qDebug() << "Get count of cat" << realRow << "at pos" << index.row() << "Count=" << m_overriddenCategories[id]->rowCount();
288+ qDebug() << "Get count of overriden cat" << realRow << id << "at pos" << index.row() << "Count=" << m_overriddenCategories[id]->rowCount();
289289 return QVariant::fromValue(m_overriddenCategories[id]->rowCount());
290290 }
291291 }
292− qDebug() << "Get count of cat" << realRow << "at pos" << index.row() << "Count=" << getResults(realIndex.row())->rowCount();
293− return QVariant::fromValue(getResults(realIndex.row())->rowCount());
292+ qDebug() << "Get count of cat" << DeeListModel::data(realIndex, CategoryColumn::ID).toString() << realRow << "at pos" << index.row() << "Count=" << getResults(realIndex.row())->rowCount();
293+ return QVariant::fromValue(getResults(realRow)->rowCount());
294294 case RoleCategoryIndex:
295295 return QVariant::fromValue(index.row()); // no remapping to realIndex
296296 default: