Fix crash when detaching Editor or Mixer w/o session
Mixer_UI::show_window(), Editor::use_own_window() use `show_all()` and the fixup items that should be invisible. This involves a call to `parameter_changed ("show-group-tabs");`
This commit is contained in:
parent
b916a14e26
commit
2bf9014ba1
@ -1428,7 +1428,7 @@ Editor::parameter_changed (std::string p)
|
||||
}
|
||||
} else if (p == "show-group-tabs") {
|
||||
|
||||
bool const s = _session->config.get_show_group_tabs ();
|
||||
bool const s = _session ? _session->config.get_show_group_tabs () : true;
|
||||
if (s) {
|
||||
_group_tabs->show ();
|
||||
} else {
|
||||
|
@ -2784,7 +2784,7 @@ void
|
||||
Mixer_UI::parameter_changed (string const & p)
|
||||
{
|
||||
if (p == "show-group-tabs") {
|
||||
bool const s = _session->config.get_show_group_tabs ();
|
||||
bool const s = _session ? _session->config.get_show_group_tabs () : true;
|
||||
if (s) {
|
||||
_group_tabs->show ();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user