Jan Mulder ac9bab7e2f Autogroup only when selected
Comits f427226b3b and 43c3885249f of the undo series introduced 2 calls
of autogroup_dives() without checking the autogroup global boolean.
This is a bug. An import from DC (for example) then triggers an
autogrouping, the divelist is autogrouped, and the UI button
is off.

This commit solves this. I've chosen for a guard in the autogroup_dives()
that now is a no-op when called when the user did not select autogrouping.
In additon, simplified the other calls to this function, as we do
not need to check before calling any more.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-10-14 09:22:56 +02:00
..
2018-10-06 19:47:06 -07:00
2018-07-18 02:09:15 +03:00
2018-10-14 09:22:56 +02:00
2018-01-31 14:47:26 +01:00
2017-04-29 13:32:55 -07:00
2018-08-23 05:16:38 -07:00
2018-09-24 07:20:25 -07:00
2018-05-27 23:18:01 +03:00
2018-08-23 05:16:38 -07:00
2018-09-07 11:03:30 -07:00
2017-04-29 13:32:55 -07:00
2018-09-13 08:16:54 -07:00
2018-05-30 21:47:07 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00