aboutsummaryrefslogtreecommitdiff
path: root/src/trustedhostcollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trustedhostcollection.cpp')
-rw-r--r--src/trustedhostcollection.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}