From f1521f241c386d0b0b80eb112368cbd95217ffc8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 12 Dec 2012 14:55:01 +0000 Subject: [PATCH] try to really get the add route dialog out of the way before we start a long add-routes operation. its irritating that flush_pending() still doesn't really work git-svn-id: svn://localhost/ardour2/branches/3.0@13648 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index d6f5321ede..c144c930b3 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -97,6 +97,7 @@ typedef uint64_t microseconds_t; #include "missing_file_dialog.h" #include "missing_plugin_dialog.h" #include "mixer_ui.h" +#include "mouse_cursors.h" #include "opts.h" #include "processor_box.h" #include "prompter.h" @@ -3147,6 +3148,16 @@ ARDOUR_UI::add_route (Gtk::Window* float_window) return; } + if (count > 8) { + /* 8 is arbitrary - we just need a threshold for where + we start caring that this operation might take + a long time + */ + flush_pending(); + flush_pending(); + flush_pending(); + } + string template_path = add_route_dialog->track_template(); if (!template_path.empty()) {