From ba773c811f85e6503f9571cd2ee9f001a438eb8e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 25 Nov 2017 08:11:41 -0800 Subject: Only call autogroup when it's enabled Signed-off-by: Dirk Hohndel --- qt-models/diveimportedmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-models') diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp index 4cc5a0191..ea70ece39 100644 --- a/qt-models/diveimportedmodel.cpp +++ b/qt-models/diveimportedmodel.cpp @@ -180,7 +180,8 @@ void DiveImportedModel::recordDives() } diveTable->nr = 0; process_dives(true, true); - autogroup_dives(); + if (autogroup) + autogroup_dives(); } QHash DiveImportedModel::roleNames() const { -- cgit v1.2.3-70-g09d2