13
0

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:
Robin Gareus 2021-02-07 00:04:36 +01:00
parent b916a14e26
commit 2bf9014ba1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {