From 891fcbf520f28ef6016d6171eba83c6773efca00 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 13 Jan 2019 22:53:57 +0200 Subject: Import: control process_imported_dives() by flags process_imported_dives() takes four boolean parameters. Replace these by flags. This makes the function calls much more descriptive. Morover, it becomes easier to add or remove flags. Signed-off-by: Berthold Stoeger --- qt-models/diveimportedmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp index 59fe9b12b..2001f031e 100644 --- a/qt-models/diveimportedmodel.cpp +++ b/qt-models/diveimportedmodel.cpp @@ -157,8 +157,8 @@ void DiveImportedModel::recordDives() delete_dive_from_table(diveTable, j); } - // TODO: Might want to let the user select "add_to_new_trip" - add_imported_dives(diveTable, nullptr, true, true, false, false); + // TODO: Might want to let the user select IMPORT_ADD_TO_NEW_TRIP + add_imported_dives(diveTable, nullptr, IMPORT_PREFER_IMPORTED | IMPORT_IS_DOWNLOADED); } QHash DiveImportedModel::roleNames() const { -- cgit v1.2.3-70-g09d2