Add mono switch to mixer strips (mantis 1068)
[ardour.git] / gtk2_ardour / editor_component.cc
index e45b8f61efc2d37da7b0fe1abe251db2d66d15e3..3265caca748d335aac8176a1774666f08e433444 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@ EditorComponent::EditorComponent (Editor* e)
 {
 
 }
-       
+
 void
 EditorComponent::connect_to_session (Session* s)
 {
@@ -45,4 +45,6 @@ EditorComponent::session_going_away ()
        for (list<connection>::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) {
                i->disconnect ();
        }
+
+       _session = 0;
 }