summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-01-15 23:40:49 +0000
committerCarl Hetherington <carl@carlh.net>2010-01-15 23:40:49 +0000
commit0c04eb8d83e53cf34716486ef85bd868c57f4cc1 (patch)
treedaae77993cbbb365b94235238e765402a345f0df /gtk2_ardour/route_time_axis.cc
parentc22c3fc31e544c1776a2f2ba6f63bb5b51477a65 (diff)
Temporarily fix segfault on show/hide all automation, pending a proper fix.
git-svn-id: svn://localhost/ardour2/branches/3.0@6501 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index e0b75b3d0a..f1e2b3168c 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1679,7 +1679,9 @@ RouteTimeAxisView::show_all_automation ()
i->second->track->set_marked_for_display (true);
i->second->track->canvas_display()->show();
i->second->track->get_state_node()->add_property ("shown", X_("yes"));
- i->second->menu_item->set_active(true);
+ if (i->second->menu_item) {
+ i->second->menu_item->set_active(true);
+ }
}
@@ -1746,7 +1748,9 @@ RouteTimeAxisView::hide_all_automation ()
i->second->track->set_marked_for_display (false);
i->second->track->hide ();
i->second->track->get_state_node()->add_property ("shown", X_("no"));
- i->second->menu_item->set_active (false);
+ if (i->second->menu_item) {
+ i->second->menu_item->set_active (false);
+ }
}
/* Hide processor automation */