From f8327ed51bc2298e2c7ef69a1ef0f82509e8d8d4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 23 Nov 2018 15:18:59 +0100 Subject: Core: move autogroup() into divelist.c After loading or importing, the caller usually called autogroup() to autogroup dives if so wished by the user. This has already led to bugs, when autogroup() was forgotten. Instead, call autogroup() directly in the process_loaded_dives() and process_imported_dives() functions. Not only does this prevent forgetting the call - it also means that autogrouping can be changed without changing every caller. Signed-off-by: Berthold Stoeger --- qt-models/diveimportedmodel.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'qt-models') diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp index 3e8386b94..ec450d53f 100644 --- a/qt-models/diveimportedmodel.cpp +++ b/qt-models/diveimportedmodel.cpp @@ -157,7 +157,6 @@ void DiveImportedModel::recordDives() } process_imported_dives(diveTable, true, true); - autogroup_dives(); } QHash DiveImportedModel::roleNames() const { -- cgit v1.2.3-70-g09d2