X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=2819353a351b851c844ea2ae98f0b57215f713a4;hp=d1cc465dd3fc6dcdf2cd6256424992b83406d6b6;hb=a453c963cf1872e14c83adf1d40a31821c166805;hpb=3640250eae6a30c7fb040c5aa5559b5b5107e661 diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index d1cc465d..2819353a 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -571,7 +571,7 @@ void TreeModel::debug_rowsAboutToBeRemoved(const QModelIndex& parent, int start, QModelIndex child; for (int i = end; i >= start; i--) { - child = parent.child(i, 0); + child = parent.model()->index(i, 0, parent); Q_ASSERT(parentItem->child(i)); qDebug() << ">>>" << i << child << child.data().toString(); } @@ -587,7 +587,7 @@ void TreeModel::debug_rowsInserted(const QModelIndex& parent, int start, int end QModelIndex child; for (int i = start; i <= end; i++) { - child = parent.child(i, 0); + child = parent.model()->index(i, 0, parent); Q_ASSERT(parentItem->child(i)); qDebug() << "<<<" << i << child << child.data().toString(); }