From b0ec4057ad80b5643e125b10fd1f9e73ecc89dd4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 7 Jul 2011 18:58:02 +0000 Subject: [PATCH] fix behaviour of "Hide" in track context menu git-svn-id: svn://localhost/ardour2/branches/3.0@9804 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_routes.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 5113ca895a..7044daa6ef 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -712,12 +712,12 @@ EditorRoutes::hide_track_in_display (TimeAxisView& tv) for (i = rows.begin(); i != rows.end(); ++i) { if ((*i)[_columns.tv] == &tv) { + tv.set_marked_for_display (false); (*i)[_columns.visible] = false; + redisplay (); break; } } - - redisplay (); } void @@ -726,14 +726,15 @@ EditorRoutes::show_track_in_display (TimeAxisView& tv) TreeModel::Children rows = _model->children(); TreeModel::Children::iterator i; + for (i = rows.begin(); i != rows.end(); ++i) { if ((*i)[_columns.tv] == &tv) { + tv.set_marked_for_display (true); (*i)[_columns.visible] = true; + redisplay (); break; } } - - redisplay (); } void