projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0995509
)
Fix crash on startup with a new Ardour install.
author
Carl Hetherington
<carl@carlh.net>
Sat, 5 Feb 2011 15:27:11 +0000
(15:27 +0000)
committer
Carl Hetherington
<carl@carlh.net>
Sat, 5 Feb 2011 15:27:11 +0000
(15:27 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8720
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
gtk2_ardour/ardour_ui.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/ardour_ui.cc
b/gtk2_ardour/ardour_ui.cc
index 1e0b75d3cb2510e76e779d8331c4f6a0358b75f8..056e1d6cff9cd1ca0b88fa2d5d8f86c59929c540 100644
(file)
--- a/
gtk2_ardour/ardour_ui.cc
+++ b/
gtk2_ardour/ardour_ui.cc
@@
-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 */
- 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"));
+ n = new_session->instant_xml (X_("Editor"));
+ if (n) {
+ n->add_property (X_("playhead"), X_("0"));
+ n->add_property (X_("left-frame"), X_("0"));
+ }
set_session (new_session);