diff options
author | Robin Gareus <robin@gareus.org> | 2013-11-22 18:22:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-11-22 18:22:55 +0100 |
commit | 5cbd4ce759474944ef138a47d3a889ac9902ae03 (patch) | |
tree | 1ba884ca67b1bdb206e841150131ca8a81b18efc | |
parent | 9a50b569309212925b3f08d9ac0a148f828b1389 (diff) |
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.
-rw-r--r-- | gtk2_ardour/processor_box.cc | 2 | ||||
-rw-r--r-- | libs/ardour/processor.cc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index a22e991752..b549fd15ac 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -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); } } diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index f9590bee11..d571f55688 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -63,6 +63,7 @@ Processor::Processor(Session& session, const string& name) , _display_to_user (true) , _pre_fader (false) , _ui_pointer (0) + , _owner (0) { } |