diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-06 12:52:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-06 12:52:29 +0200 |
commit | 3a75fab244a23ca73525debce2aeddf840b1fd86 (patch) | |
tree | 3e30a96dd7b098196be51019e4c90cdba15af392 /gtk2_ardour/editor_routes.cc | |
parent | 8bc872614eb7ab1f2c7619f25ed1db050d2469eb (diff) |
speed up session load (display updates)
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 1ca8cf2a65..e00748c2fb 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -494,9 +494,10 @@ EditorRoutes::show_menu () void EditorRoutes::redisplay () { - if (_no_redisplay || !_session || _session->deletion_in_progress()) { + if (_no_redisplay || !_session || _session->deletion_in_progress() || _redisplaying) { return; } + _redisplaying = true; // tv->show_at() below causes recursive redisplay via handle_gui_changes() TreeModel::Children rows = _model->children(); TreeModel::Children::iterator i; @@ -545,6 +546,7 @@ EditorRoutes::redisplay () */ _editor->vertical_adjustment.set_value (_editor->_full_canvas_height - _editor->_visible_canvas_height); } + _redisplaying = false; } void |