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,6 +180,7 @@ void DiveImportedModel::recordDives()
} }
diveTable->nr = 0; diveTable->nr = 0;
process_dives(true, true); process_dives(true, true);
if (autogroup)
autogroup_dives(); autogroup_dives();
} }