From b8f883e6082cb638a8465de7ec7cfcd2077ab651 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Sep 2020 15:07:11 -0600 Subject: [PATCH] prevent Session range markers from being hidden --- libs/ardour/location.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index b2f6bf67cd..3f6126938f 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -455,6 +455,11 @@ Location::move_to (samplepos_t pos, const uint32_t sub_num) void Location::set_hidden (bool yn, void*) { + /* do not allow session range markers to be hidden */ + if (is_session_range()) { + return; + } + if (set_flag_internal (yn, IsHidden)) { flags_changed (this); /* EMIT SIGNAL */ FlagsChanged ();