From f527a70831a37e736431baa5705c9d188fc12f4b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 23 Oct 2018 19:11:13 +0200 Subject: Dive site: pass dive-site pointer to delete_dive_site() Instead of passing a uuid, pass a pointer to the dive site. This is small step in an effort to remove uuids. Signed-off-by: Berthold Stoeger --- qt-models/divelocationmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models') diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 5949628b5..43ab8eac7 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -97,7 +97,7 @@ bool LocationInformationModel::removeRows(int row, int, const QModelIndex&) beginRemoveRows(QModelIndex(), row, row); struct dive_site *ds = get_dive_site(row); if (ds) - delete_dive_site(ds->uuid); + delete_dive_site(ds); endRemoveRows(); return true; } -- cgit v1.2.3-70-g09d2