diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-07-26 13:53:36 -0500 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-27 00:26:09 +0200 |
commit | 0d32105a1ec0a09f0676d06c133b66ec4a6b21f5 (patch) | |
tree | ecc8b76c4e46fc9ae8d5e167f645be1fbd5fc046 /gtk2_ardour/editor_mouse.cc | |
parent | 43c76ff23b7267ab3d78965d9ad6ce9bcc6a8b4a (diff) |
new_grid: Add options for rulers_follow_grid and grid_follows_internal
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index df559cf8f0..4b15b5d0e0 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -317,7 +317,10 @@ Editor::mouse_mode_toggled (MouseMode m) /* Switch snap type/mode if we're moving to/from an internal tool. Note this must toggle the actions and not call set_snap_*() directly, otherwise things get out of sync and the combo box stops working. */ - if (!was_internal && internal_editing()) { + if (!UIConfiguration::instance().get_grid_follows_internal()) { + grid_type_action(pre_internal_grid_type)->set_active(true); + snap_mode_action(pre_internal_snap_mode)->set_active(true); + } else if (!was_internal && internal_editing()) { grid_type_action(internal_grid_type)->set_active(true); snap_mode_action(internal_snap_mode)->set_active(true); } else if (was_internal && !internal_editing()) { |