[Summary] Made session configuration update in editor window consistent

[Review] GZharun
This commit is contained in:
nikolay 2014-06-25 11:43:23 +03:00
parent c5d6531dcf
commit f2fa3ea052
2 changed files with 4 additions and 4 deletions

View file

@ -3175,6 +3175,8 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name,
return -1;
}
_session->config.ParameterChanged.connect_same_thread (connection_with_session_config, boost::bind (&ARDOUR_UI::on_parameter_changed, this, _1));
new_session->config.set_native_file_header_format(this->_header_format);
new_session->config.set_native_file_data_format (this->_sample_format);
new_session->config.set_timecode_format(this->_timecode_format);
@ -3199,10 +3201,7 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name,
}
set_session (new_session);
session_loaded = true;
_session->config.ParameterChanged.connect_same_thread (connection_with_session_config, boost::bind (&ARDOUR_UI::on_parameter_changed, this, _1));
session_loaded = true;
new_session->save_state(new_session->name());

View file

@ -189,6 +189,7 @@ ARDOUR_UI::set_session (Session *s)
point_zero_something_second_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::every_point_zero_something_seconds), 40);
update_format ();
update_timecode_format();
if (meter_box.get_parent()) {
transport_tearoff_hbox.remove (meter_box);