From a4f3580e10388a1aecfd10a3a70eaf10efe06640 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Aug 2019 17:22:15 +0200 Subject: Mobile: remove dive argument from DiveListModel::insertDive() Since DiveListModel does not keep its own list of dives anymore, insertDive() doesn't use the DiveObjectHelper argument. Remove it. Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qmlmanager.cpp') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index bb29a63bc..369c6d14d 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1212,7 +1212,7 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q if (newIdx != oldIdx) { DiveListModel::instance()->removeDive(modelIdx); modelIdx += (newIdx - oldIdx); - DiveListModel::instance()->insertDive(modelIdx, &myDive); + DiveListModel::instance()->insertDive(modelIdx); diveChanged = true; // because we already modified things } } @@ -1363,7 +1363,7 @@ bool QMLManager::undoDelete(int id) add_dive_to_trip(deletedDive, trip); } record_dive(deletedDive); - DiveListModel::instance()->insertDive(get_idx_by_uniq_id(deletedDive->id), nullptr); + DiveListModel::instance()->insertDive(get_idx_by_uniq_id(deletedDive->id)); changesNeedSaving(); deletedDive = NULL; deletedTrip = NULL; -- cgit v1.2.3-70-g09d2