diff options
Diffstat (limited to 'smtreemodel.cpp')
-rw-r--r-- | smtreemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smtreemodel.cpp b/smtreemodel.cpp index 227c1cb..2a230cc 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -153,7 +153,7 @@ bool SmTreeModel::removeRows(int row, int count, const QModelIndex &parent){ beginRemoveRows(parent, row, row + count - 1); for(int i = row + count; i > row; --i){ - retval = parentItem->removeChild(i); + retval = parentItem->removeChild(i - 1); } endRemoveRows(); |