From 5de741c4ab9970bee830a60efa07e26f219aecef Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 30 Jan 2011 12:48:00 +0000 Subject: [PATCH] Start new sessions with the playhead at 0 and the editor scrolled fully left (#3670). git-svn-id: svn://localhost/ardour2/branches/3.0@8619 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 09a6562fb4..1e0b75d3cb 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2836,6 +2836,10 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, new_session->add_instant_xml (*n, false); } + /* Put the playhead at 0 and scroll fully left */ + new_session->instant_xml(X_("Editor"))->add_property (X_("playhead"), X_("0")); + new_session->instant_xml(X_("Editor"))->add_property (X_("left-frame"), X_("0")); + set_session (new_session); session_loaded = true;