diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-13 22:53:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-19 13:48:17 -0800 |
commit | 891fcbf520f28ef6016d6171eba83c6773efca00 (patch) | |
tree | 22952fe84f0ff56f9ceffdac35c1e1329c7534e3 /qt-models | |
parent | ff9506b21bbb9910256841dcb577bcb2e19047e8 (diff) | |
download | subsurface-891fcbf520f28ef6016d6171eba83c6773efca00.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveimportedmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int, QByteArray> DiveImportedModel::roleNames() const { |