From 974ae5100f522c364fe2e13938765c51eacb894d Mon Sep 17 00:00:00 2001 From: Mister Benjamin Date: Wed, 27 May 2020 21:06:16 +0200 Subject: [PATCH] Allow CD marker at session start #8029 Remove restriction in GUI, keep CD-marker button sensitive. --- gtk2_ardour/location_ui.cc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 3f850816b1..adb3a73189 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -298,12 +298,6 @@ LocationEditRow::set_location (Location *loc) cd_check_button.set_active (location->is_cd_marker()); cd_check_button.show(); - if (location->start() == _session->current_start_sample()) { - cd_check_button.set_sensitive (false); - } else { - cd_check_button.set_sensitive (true); - } - hide_check_button.show(); lock_check_button.show(); glue_check_button.show(); @@ -533,18 +527,6 @@ LocationEditRow::cd_toggled () return; } - //if (cd_check_button.get_active() == location->is_cd_marker()) { - // return; - //} - - if (cd_check_button.get_active()) { - if (location->start() <= _session->current_start_sample()) { - error << _("You cannot put a CD marker at the start of the session") << endmsg; - cd_check_button.set_active (false); - return; - } - } - location->set_cd (cd_check_button.get_active(), this); if (location->is_cd_marker()) { @@ -660,12 +642,6 @@ LocationEditRow::start_changed () start_clock.set (location->start()); - if (location->start() == _session->current_start_sample()) { - cd_check_button.set_sensitive (false); - } else { - cd_check_button.set_sensitive (true); - } - i_am_the_modifier--; }