13
0

tweak window-proxy session-management logic

This commit is contained in:
Robin Gareus 2013-07-10 15:21:24 +02:00
parent 86ae4c5fc1
commit 40f8806c7d

View File

@ -65,9 +65,9 @@ ARDOUR_UI::set_session (Session *s)
{
SessionHandlePtr::set_session (s);
WM::Manager::instance().set_session (s);
if (!_session) {
WM::Manager::instance().set_session (s);
/* Session option editor cannot exist across change-of-session */
session_option_editor.drop_window ();
/* Ditto for AddVideoDialog */
@ -87,6 +87,8 @@ ARDOUR_UI::set_session (Session *s)
}
}
WM::Manager::instance().set_session (s);
AutomationWatch::instance().set_session (s);
if (shuttle_box) {
@ -228,6 +230,7 @@ ARDOUR_UI::unload_session (bool hide_stuff)
rec_button.set_sensitive (false);
WM::Manager::instance().set_session ((ARDOUR::Session*) 0);
ARDOUR_UI::instance()->video_timeline->close_session();
stop_blinking ();