From 5cbd4ce759474944ef138a47d3a889ac9902ae03 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 Nov 2013 18:22:55 +0100 Subject: 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. --- gtk2_ardour/processor_box.cc | 2 +- libs/ardour/processor.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 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) { } -- cgit v1.2.3