diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-11-25 08:11:41 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-25 08:12:28 -0800 |
commit | ba773c811f85e6503f9571cd2ee9f001a438eb8e (patch) | |
tree | 16668b88d6eb9acc9d1204340052b3d8ab0e2165 /qt-models | |
parent | 4fb01dd766c824529dad4bd1ca64a981e137d476 (diff) | |
download | subsurface-ba773c811f85e6503f9571cd2ee9f001a438eb8e.tar.gz |
Only call autogroup when it's enabled
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveimportedmodel.cpp | 3 |
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 { |