diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-17 12:00:34 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:13 -0400 |
commit | 745a235b9d930c7c28acb3d4e05d37131bc072dc (patch) | |
tree | 582287fe2561268513a17783be8f0c20b25f4a8c /gtk2_ardour/ardour_ui_options.cc | |
parent | 682d8ae064303634a7cac747ab96fa1226cddd14 (diff) |
properly track, update, maintain and set auto return state
Conflicts:
gtk2_ardour/ardour_ui_options.cc
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index 52f289b3f2..e5feeadeb0 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -422,6 +422,12 @@ ARDOUR_UI::parameter_changed (std::string p) } else if (p == "waveform-cache-size") { /* GUI option has units of megabytes; image cache uses units of bytes */ ArdourCanvas::WaveView::set_image_cache_size (ARDOUR_UI::config()->get_waveform_cache_size() * 1048576); + } else if (p == "auto-return-target-list") { + AutoReturnTarget art = Config->get_auto_return_target_list (); + auto_return_loop->set_active ((bool) (art & Loop)); + auto_return_range_selection->set_active ((bool) (art & RangeSelectionStart)); + auto_return_region_selection->set_active ((bool) (art & RegionSelectionStart)); + auto_return_last_locate->set_active ((bool) (art & LastLocate)); } } |