From b78d036aa056af0ef4f5821c45dae5f70bc69231 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 1 Feb 2011 02:41:31 +0000 Subject: store void pointers to processor UIs in Processors, and reset ProcessorWindowProxy objects to use them, so that we can never create 2 windows (UIs) for the same processor git-svn-id: svn://localhost/ardour2/branches/3.0@8638 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/processor.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libs/ardour/processor.cc') diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 69d0f2408d..8ddc58735c 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -68,6 +68,20 @@ Processor::Processor(Session& session, const string& name) , _configured(false) , _display_to_user (true) , _pre_fader (false) + , _ui_pointer (0) +{ +} + +Processor::Processor (const Processor& other) + : SessionObject(other.session(), other.name()) + , Automatable (other.session()) + , _pending_active(other._pending_active) + , _active(other._active) + , _next_ab_is_active(false) + , _configured(false) + , _display_to_user (true) + , _pre_fader (false) + , _ui_pointer (0) { } @@ -279,3 +293,9 @@ Processor::set_pre_fader (bool p) { _pre_fader = p; } + +void +Processor::set_ui (void* p) +{ + _ui_pointer = p; +} -- cgit v1.2.3