summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r--qt-models/divelocationmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp
index ea6efda95..234b4f16c 100644
--- a/qt-models/divelocationmodel.cpp
+++ b/qt-models/divelocationmodel.cpp
@@ -85,6 +85,7 @@ bool LocationInformationModel::removeRows(int row, int count, const QModelIndex
struct dive_site *ds = get_dive_site(row);
if (ds)
delete_dive_site(ds->uuid);
+ internalRowCount = dive_site_table.nr;
endRemoveRows();
return true;
}