13
0

T: fix crash when cycling though tabs

`recorder` (and other tabbables) do not exist
This commit is contained in:
Robin Gareus 2024-05-24 23:44:05 +02:00
parent a6f2a90bdb
commit 5a188fba55
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -478,6 +478,9 @@ ARDOUR_UI::toggle_editor_and_mixer ()
void void
ARDOUR_UI::step_up_through_tabs () ARDOUR_UI::step_up_through_tabs ()
{ {
#ifdef LIVETRAX
return;
#endif
std::vector<Tabbable*> candidates; std::vector<Tabbable*> candidates;
/* this list must match the order of visibility buttons */ /* this list must match the order of visibility buttons */
@ -498,11 +501,10 @@ ARDOUR_UI::step_up_through_tabs ()
candidates.push_back (trigger_page); candidates.push_back (trigger_page);
} }
#ifndef LIVETRAX
if (rc_option_editor->tabbed()) { if (rc_option_editor->tabbed()) {
candidates.push_back (rc_option_editor); candidates.push_back (rc_option_editor);
} }
#endif
if (candidates.size() < 2) { if (candidates.size() < 2) {
/* nothing to be done with zero or one visible in tabs */ /* nothing to be done with zero or one visible in tabs */
return; return;
@ -528,6 +530,9 @@ ARDOUR_UI::step_up_through_tabs ()
void void
ARDOUR_UI::step_down_through_tabs () ARDOUR_UI::step_down_through_tabs ()
{ {
#ifdef LIVETRAX
return;
#endif
std::vector<Tabbable*> candidates; std::vector<Tabbable*> candidates;
/* this list must match the order of visibility buttons */ /* this list must match the order of visibility buttons */
@ -548,11 +553,10 @@ ARDOUR_UI::step_down_through_tabs ()
candidates.push_back (trigger_page); candidates.push_back (trigger_page);
} }
#ifndef LIVETRAX
if (rc_option_editor->tabbed()) { if (rc_option_editor->tabbed()) {
candidates.push_back (rc_option_editor); candidates.push_back (rc_option_editor);
} }
#endif
if (candidates.size() < 2) { if (candidates.size() < 2) {
/* nothing to be done with zero or one visible in tabs */ /* nothing to be done with zero or one visible in tabs */
return; return;