T: fix crash when cycling though tabs
`recorder` (and other tabbables) do not exist
This commit is contained in:
parent
a6f2a90bdb
commit
5a188fba55
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user