clock-delta mode restore: anticipate toggling set_active callback

git-svn-id: svn://localhost/ardour2/branches/3.0@13439 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus
2012-11-11 18:15:13 +00:00
parent 3f2e8fe305
commit 09194dcf88

View File

@@ -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);
}
}
}