try that one on for size (VST build fu)
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index 5a1ec874624e2d5c39862c049e0833c5a139ab5c..e467b2e2327e13152f7636f1a03b569bd416190f 100644 (file)
@@ -50,6 +50,7 @@ ARDOUR_UI::connect_to_session (Session *s)
        session = s;
 
        session->HaltOnXrun.connect (mem_fun(*this, &ARDOUR_UI::halt_on_xrun_message));
+       session->RecordStateChanged.connect (mem_fun (*this, &ARDOUR_UI::record_state_changed));
 
        /* sensitize menu bar options that are now valid */
 
@@ -76,10 +77,6 @@ ARDOUR_UI::connect_to_session (Session *s)
        rec_button.set_sensitive (true);
        shuttle_box.set_sensitive (true);
        
-       if (session->n_diskstreams() == 0) {
-               session->DiskstreamAdded.connect (mem_fun(*this, &ARDOUR_UI::diskstream_added));
-       }
-
        if (connection_editor) {
                connection_editor->set_session (s);
        }
@@ -135,10 +132,6 @@ ARDOUR_UI::connect_to_session (Session *s)
        start_clocking ();
        start_blinking ();
 
-       if (editor) {
-               editor->present();
-       }
-
        transport_stopped ();
 
        second_connection = Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::every_second), 1000);
@@ -156,7 +149,6 @@ ARDOUR_UI::unload_session ()
                        
                case 1:
                        session->save_state ("");
-                        session->save_history ("");
                        break;
                }
        }