13
0

fix crash @ session-restore of plugins windows

The question is: why is _owner not set [yet], when the
window is restored. This rather smells like a race condition.
This commit is contained in:
Robin Gareus 2013-11-22 18:22:55 +01:00
parent 9a50b56930
commit 5cbd4ce759
2 changed files with 2 additions and 1 deletions

View File

@ -2598,7 +2598,7 @@ ProcessorBox::generate_processor_title (boost::shared_ptr<PluginInsert> pi)
if (owner) {
return string_compose(_("%1: %2 (by %3)"), owner->name(), pi->name(), maker);
} else {
return string_compose(_("%2 (by %3)"), pi->name(), maker);
return string_compose(_("%1 (by %2)"), pi->name(), maker);
}
}

View File

@ -63,6 +63,7 @@ Processor::Processor(Session& session, const string& name)
, _display_to_user (true)
, _pre_fader (false)
, _ui_pointer (0)
, _owner (0)
{
}