fix import of v2 session redirects: active or inactive
[ardour.git] / libs / ardour / processor.cc
index d571f55688f5e0e283c64ab597704dc87efb9485..fa6cab579ad7cff165ddc111c4beba1afc6fadae 100644 (file)
@@ -63,6 +63,7 @@ Processor::Processor(Session& session, const string& name)
        , _display_to_user (true)
        , _pre_fader (false)
        , _ui_pointer (0)
+       , _window_proxy (0)
        , _owner (0)
 {
 }
@@ -79,6 +80,8 @@ Processor::Processor (const Processor& other)
        , _display_to_user (true)
        , _pre_fader (false)
        , _ui_pointer (0)
+       , _window_proxy (0)
+       , _owner (0)
 {
 }
 
@@ -147,7 +150,9 @@ Processor::set_state_2X (const XMLNode & node, int /*version*/)
                        
                        set_id (**i);
 
-                       if ((prop = (*i)->property ("active")) != 0) {
+                       //note:  in A2, active state was stored in the Redirect node, not the child IO node
+                       /*
+                        * if ((prop = (*i)->property ("active")) != 0) {
                                bool const a = string_is_affirmative (prop->value ());
                                if (_active != a) {
                                        if (a) {
@@ -156,7 +161,8 @@ Processor::set_state_2X (const XMLNode & node, int /*version*/)
                                                deactivate ();
                                        }
                                }
-                       }
+                       }*/
+                       
                }
        }
 
@@ -271,6 +277,12 @@ Processor::set_ui (void* p)
        _ui_pointer = p;
 }
 
+void
+Processor::set_window_proxy (ProcessorWindowProxy* wp)
+{
+       _window_proxy = wp;
+}
+
 void
 Processor::set_owner (SessionObject* o)
 {