mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Fix crash on startup with a new Ardour install.
git-svn-id: svn://localhost/ardour2/branches/3.0@8720 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0995509a15
commit
11b22d503d
1 changed files with 5 additions and 2 deletions
|
|
@ -2837,8 +2837,11 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Put the playhead at 0 and scroll fully left */
|
/* Put the playhead at 0 and scroll fully left */
|
||||||
new_session->instant_xml(X_("Editor"))->add_property (X_("playhead"), X_("0"));
|
n = new_session->instant_xml (X_("Editor"));
|
||||||
new_session->instant_xml(X_("Editor"))->add_property (X_("left-frame"), X_("0"));
|
if (n) {
|
||||||
|
n->add_property (X_("playhead"), X_("0"));
|
||||||
|
n->add_property (X_("left-frame"), X_("0"));
|
||||||
|
}
|
||||||
|
|
||||||
set_session (new_session);
|
set_session (new_session);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue