diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-30 01:37:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-30 01:37:56 +0000 |
commit | 80084dcdf32e0deb59e6b3642263ab0ea1e940e0 (patch) | |
tree | ea489169263501e4cb7616d2031de076f665e0fb | |
parent | b75956d35d0c00f23852ed7b09dcb7c33003f20c (diff) |
Fix another crash on session creation if the stored selection no longer exists in the session.
git-svn-id: svn://localhost/ardour2/branches/3.0@7711 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/selection.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc index 42f1a80f0b..d04c986092 100644 --- a/gtk2_ardour/selection.cc +++ b/gtk2_ardour/selection.cc @@ -1129,8 +1129,9 @@ Selection::set_state (XMLNode const & node, int) assert (prop_id); PBD::ID id (prop_id->value ()); RouteTimeAxisView* rtv = editor->get_route_view_by_route_id (id); - assert (rtv); - add (rtv); + if (rtv) { + add (rtv); + } } else if ((*i)->name() == X_("AutomationView")) { |