diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/favouritecollection.cpp | 4 | ||||
| -rw-r--r-- | src/trustedhostcollection.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/favouritecollection.cpp b/src/favouritecollection.cpp index 2472610..bc387c2 100644 --- a/src/favouritecollection.cpp +++ b/src/favouritecollection.cpp @@ -619,10 +619,10 @@ bool FavouriteCollection::dropMimeData(const QMimeData *data, Qt::DropAction act auto & insert_list = item->as<GroupNode>().children; if((row < 0) or (size_t(row) >= insert_list.size())) { - beginInsertRows(parent, insert_list.size(), insert_list.size() + 1); + beginInsertRows(parent, insert_list.size(), insert_list.size()); insert_list.emplace_back(std::move(node)); } else { - beginInsertRows(parent, row, row + 1); + beginInsertRows(parent, row, row); insert_list.emplace(insert_list.begin() + size_t(row), std::move(node)); } endInsertRows(); diff --git a/src/trustedhostcollection.cpp b/src/trustedhostcollection.cpp index 5171fd3..bbc7720 100644 --- a/src/trustedhostcollection.cpp +++ b/src/trustedhostcollection.cpp @@ -142,7 +142,7 @@ void TrustedHostCollection::remove(const QModelIndex &index) return; if(index.row() < 0 or index.row() >= items.size()) return; - beginRemoveRows(QModelIndex{}, index.row(), index.row() + 1); + beginRemoveRows(QModelIndex{}, index.row(), index.row()); items.removeAt(index.row()); endRemoveRows(); } |
