add new swedish translation
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index 1c270ef38d11e6653cbe8fe992278ee4396824bc..fe5963c53572f5557afa9f5931bc1755ec350b41 100644 (file)
@@ -39,6 +39,7 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
+using namespace PBD;
 using namespace Glib;
 using namespace Gtk;
 using namespace Gtkmm2ext;
@@ -75,10 +76,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);
        }
@@ -134,10 +131,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);
@@ -356,8 +349,7 @@ int
 ARDOUR_UI::create_sound_file_browser ()
 {
        if (sfdb == 0) {
-               sfdb = new SoundFileBrowser (_("Sound File Browser"));
-               sfdb->set_session (session);
+               sfdb = new SoundFileBrowser (_("Sound File Browser"), session);
                sfdb->signal_unmap().connect (sigc::bind(sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleSoundFileBrowser")));
        }
        return 0;