]> Some of my projects - localmylist.git/commitdiff
Correct row remove count.
authorAPTX <marek321@gmail.com>
Tue, 23 Apr 2013 00:01:00 +0000 (02:01 +0200)
committerAPTX <marek321@gmail.com>
Tue, 23 Apr 2013 00:01:00 +0000 (02:01 +0200)
localmylist/mylistnode.cpp

index 99f8b7e63358ae4343a91ef0638f2f21b995ecad..b024a05c83d5ab9a92cf528c6cc6bddfeac41e8f 100644 (file)
@@ -312,7 +312,7 @@ void MyListNode::childRemoved(MyListNode *child)
 
        Q_ASSERT(childItems.contains(child));
 
-       model->beginRemoveRows(model->index(this), row, row + 1);
+       model->beginRemoveRows(model->index(this), row, row);
        childItems.removeAt(row);
        --m_totalRowCount;
        model->endRemoveRows();