diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divelocationmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 164d85d95..a2b5606b7 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -42,8 +42,8 @@ void LocationInformationModel::update() endRemoveRows(); } if (i) { - beginInsertRows(QModelIndex(), 0, i); - internalRowCount = i; + beginInsertRows(QModelIndex(), 0, i-1); + internalRowCount = i-1; endInsertRows(); } } |