Only call autogroup when it's enabled

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-11-25 08:11:41 -08:00
parent 4fb01dd766
commit ba773c811f

View file

@ -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 {