Change redirectmenu to processormenu
[ardour.git] / gtk2_ardour / route_time_axis.cc
index 82777944f415aac3133d302f697b9410e7b9d59d..b3a988fd927318660ae47e787d2a44698eedc192 100644 (file)
@@ -117,6 +117,11 @@ RouteTimeAxisView::RouteTimeAxisView (PublicEditor& ed, Session& sess, boost::sh
        playlist_action_menu = 0;
        automation_action_menu = 0;
        _view = 0;
+
+       if (!_route->is_hidden()) {
+               _marked_for_display = true;
+       }
+
        timestretch_rect = 0;
        no_redraw = false;
        destructive_track_mode_item = 0;
@@ -1795,6 +1800,7 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom
        using namespace Menu_Helpers;
 
        XMLProperty* prop;
+       XMLNode* node;
 
        add_child (track);
 
@@ -1802,8 +1808,6 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom
 
        bool hideit = (!show);
 
-       XMLNode* node;
-
        if ((node = track->get_state_node()) != 0) {
                if  ((prop = node->property ("shown")) != 0) {
                        if (prop->value() == "yes") {
@@ -1811,7 +1815,7 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom
                        }
                } 
        }
-       
+
        _automation_tracks.insert(std::make_pair(param, new RouteAutomationNode(param, NULL, track)));
 
        if (hideit) {
@@ -1819,6 +1823,7 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom
        } else {
                _show_automation.insert (param);
 
+
                if (!no_redraw) {
                        _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
                }