Use set_autogroup() function

Since this function exists, use it instead of setting the global
variable directly.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-01-03 21:58:05 +01:00 committed by Dirk Hohndel
parent 956cb53cd5
commit b4e36c5912

View file

@ -1085,7 +1085,7 @@ void MainWindow::on_actionRenumber_triggered()
void MainWindow::on_actionAutoGroup_triggered()
{
autogroup = ui.actionAutoGroup->isChecked();
set_autogroup(ui.actionAutoGroup->isChecked());
if (autogroup)
autogroup_dives();
else