diff options
author | Robin Gareus <robin@gareus.org> | 2014-08-31 07:12:21 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-08-31 07:12:21 +0200 |
commit | c993e2d37bf9f3269bbbe5e47ee391805354206d (patch) | |
tree | e14fa5a789f7e60281f045259a5ca4bc692f9c3a /gtk2_ardour/ardour_ui_options.cc | |
parent | 19b212334a001ab1bccce04e8b2835c483953e84 (diff) |
update track-header width when track-number visibility is toggled
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index a1c971bc4e..a8be3ccd0c 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -435,6 +435,13 @@ ARDOUR_UI::session_parameter_changed (std::string p) synchronize_sync_source_and_video_pullup (); reset_main_clocks (); editor->queue_visual_videotimeline_update(); + } else if (p == "track-name-number") { + /* DisplaySuspender triggers _route->redisplay() when going out of scope + * which eventually calls reset_controls_layout_width() and re-sets the + * track-header width. + * see also RouteTimeAxisView::update_track_number_visibility() + */ + DisplaySuspender ds; } } |