From b4e36c591204a26fac63ff59713f8ddd081fb5a6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 3 Jan 2018 21:58:05 +0100 Subject: [PATCH] Use set_autogroup() function Since this function exists, use it instead of setting the global variable directly. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 06f1e0df1..d31d3cca6 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -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