summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-25 08:11:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-25 08:12:28 -0800
commitba773c811f85e6503f9571cd2ee9f001a438eb8e (patch)
tree16668b88d6eb9acc9d1204340052b3d8ab0e2165 /qt-models/diveimportedmodel.cpp
parent4fb01dd766c824529dad4bd1ca64a981e137d476 (diff)
downloadsubsurface-ba773c811f85e6503f9571cd2ee9f001a438eb8e.tar.gz
Only call autogroup when it's enabled
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveimportedmodel.cpp')
-rw-r--r--qt-models/diveimportedmodel.cpp3
1 files changed, 2 insertions, 1 deletions
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<int, QByteArray> DiveImportedModel::roleNames() const {