diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-01-03 21:58:05 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-04 08:21:43 -0800 |
commit | b4e36c591204a26fac63ff59713f8ddd081fb5a6 (patch) | |
tree | d24f1a499308735948a719b54b866defbf25ae1b /desktop-widgets/mainwindow.cpp | |
parent | 956cb53cd5610392b57c7c70a081608f99d44581 (diff) | |
download | subsurface-b4e36c591204a26fac63ff59713f8ddd081fb5a6.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |