projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f6686e
)
prevent 0-pointer dereference in editor_routes.cc - fixes #5794
author
Robin Gareus
<robin@gareus.org>
Sat, 28 Dec 2013 15:15:00 +0000
(16:15 +0100)
committer
Robin Gareus
<robin@gareus.org>
Sat, 28 Dec 2013 15:15:00 +0000
(16:15 +0100)
gtk2_ardour/editor.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor.cc
b/gtk2_ardour/editor.cc
index cf3eab57245640583676310de71b17570cebe163..faa2a0cf56cc34a2e014b009b8b7178c77410821 100644
(file)
--- a/
gtk2_ardour/editor.cc
+++ b/
gtk2_ardour/editor.cc
@@
-4871,8
+4871,10
@@
Editor::add_routes (RouteList& routes)
rtv->view()->RegionViewRemoved.connect (sigc::mem_fun (*this, &Editor::region_view_removed));
}
rtv->view()->RegionViewRemoved.connect (sigc::mem_fun (*this, &Editor::region_view_removed));
}
- _routes->routes_added (new_views);
- _summary->routes_added (new_views);
+ if (new_views.size() > 0) {
+ _routes->routes_added (new_views);
+ _summary->routes_added (new_views);
+ }
if (show_editor_mixer_when_tracks_arrive) {
show_editor_mixer (true);
if (show_editor_mixer_when_tracks_arrive) {
show_editor_mixer (true);