diff options
author | Robin Gareus <robin@gareus.org> | 2012-11-11 18:15:13 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-11-11 18:15:13 +0000 |
commit | 09194dcf883ad0005b9799d1eb4d9d7927cdfac4 (patch) | |
tree | dacaad4b654f3f18c4ab317f77e79c3c3198838f /gtk2_ardour/main_clock.cc | |
parent | 3f2e8fe3055a712983d1d67a8bdba0f9a061e2fe (diff) |
clock-delta mode restore: anticipate toggling set_active callback
git-svn-id: svn://localhost/ardour2/branches/3.0@13439 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main_clock.cc')
-rw-r--r-- | gtk2_ardour/main_clock.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/main_clock.cc b/gtk2_ardour/main_clock.cc index cf00e25839..c9361f6091 100644 --- a/gtk2_ardour/main_clock.cc +++ b/gtk2_ardour/main_clock.cc @@ -51,9 +51,15 @@ MainClock::build_ops_menu () ops_items.push_back (CheckMenuElem (_("Display delta to edit cursor"), sigc::mem_fun (*this, &MainClock::display_delta_to_edit_cursor))); CheckMenuItem* c = dynamic_cast<CheckMenuItem *> (&ops_items.back()); if (_primary) { - c->set_active (ARDOUR::Config->get_primary_clock_delta_edit_cursor ()); + if (ARDOUR::Config->get_primary_clock_delta_edit_cursor ()) { + ARDOUR::Config->set_primary_clock_delta_edit_cursor (false); + c->set_active (true); + } } else { - c->set_active (ARDOUR::Config->get_secondary_clock_delta_edit_cursor ()); + if (ARDOUR::Config->get_secondary_clock_delta_edit_cursor ()) { + ARDOUR::Config->set_secondary_clock_delta_edit_cursor (false); + c->set_active (true); + } } } |