mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue