summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-22 01:14:02 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-22 01:14:02 +0000
commit87fb46859c5950af7c00111afa81a00a1fad2196 (patch)
tree90140396e075089f6ae9a8950aa4747b0f5c739d
parentc53115c650d9da64ba686425e8b90dc452ff862d (diff)
Fix crash on session close.
git-svn-id: svn://localhost/ardour2/branches/3.0@6388 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/route_time_axis.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 0e5088cd26..fe4038323d 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1683,7 +1683,9 @@ RouteTimeAxisView::automation_track_hidden (Evoral::Parameter param)
ran->menu_item->set_active (false);
}
- _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
+ if (_route) {
+ _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
+ }
}