mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
fix crashes related to loop/punch ruler no longer existing
This commit is contained in:
parent
83b3070fe1
commit
53ddd200e7
1 changed files with 12 additions and 2 deletions
|
|
@ -246,7 +246,12 @@ ARDOUR_UI::toggle_punch_out ()
|
|||
void
|
||||
ARDOUR_UI::show_loop_punch_ruler_and_disallow_hide ()
|
||||
{
|
||||
/* XXX FIX ME */
|
||||
return;
|
||||
|
||||
/* This is what this method used to do but after ruler consolidation
|
||||
* it is not clear what the correct semantics are/should be.
|
||||
*/
|
||||
|
||||
Glib::RefPtr<ToggleAction> tact; // = ActionManager::get_toggle_action (X_("Rulers"), "toggle-loop-punch-ruler");
|
||||
|
||||
tact->set_sensitive (false);
|
||||
|
|
@ -260,7 +265,12 @@ ARDOUR_UI::show_loop_punch_ruler_and_disallow_hide ()
|
|||
void
|
||||
ARDOUR_UI::reenable_hide_loop_punch_ruler_if_appropriate ()
|
||||
{
|
||||
/* XXX FIX ME */
|
||||
return;
|
||||
|
||||
/* This is what this method used to do but after ruler consolidation
|
||||
* it is not clear what the correct semantics are/should be.
|
||||
*/
|
||||
|
||||
if (!_session->config.get_punch_in() && !_session->config.get_punch_out()) {
|
||||
/* if punch in/out are now both off, reallow hiding of the loop/punch ruler */
|
||||
Glib::RefPtr<Action> act; // = ActionManager::get_action (X_("Rulers"), "toggle-loop-punch-ruler");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue