replace unicode dash with (monospace) minus.
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index 2dd48b71d1f7755c960edd58eb5b405c4c3585cc..02c72d723066f081fcdb8567ef0320176c2bc656 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "ardour/session.h"
 #include "ardour/audioengine.h"
+#include "ardour/automation_watch.h"
 
 #include "actions.h"
 #include "add_route_dialog.h"
@@ -35,6 +36,7 @@
 #include "gui_thread.h"
 #include "keyeditor.h"
 #include "location_ui.h"
+#include "main_clock.h"
 #include "midi_tracer.h"
 #include "mixer_ui.h"
 #include "public_editor.h"
@@ -60,6 +62,13 @@ ARDOUR_UI::set_session (Session *s)
 {
        SessionHandlePtr::set_session (s);
 
+       for (ARDOUR::DataType::iterator i = ARDOUR::DataType::begin(); i != ARDOUR::DataType::end(); ++i) {
+               GlobalPortMatrixWindow* w;
+               if ((w = _global_port_matrix[*i]->get()) != 0) {
+                       w->set_session (s);
+               }
+       }
+
        if (!_session) {
                return;
        }
@@ -76,6 +85,8 @@ ARDOUR_UI::set_session (Session *s)
                }
        }
 
+       AutomationWatch::instance().set_session (s);
+
        if (location_ui->get()) {
                location_ui->get()->set_session(s);
        }
@@ -242,6 +253,8 @@ ARDOUR_UI::unload_session (bool hide_stuff)
        delete _session;
        _session = 0;
 
+       session_loaded = false;
+
        update_buffer_load ();
 
        return 0;