summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-12 14:55:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-12 14:55:01 +0000
commitf1521f241c386d0b0b80eb112368cbd95217ffc8 (patch)
treed410b0524f6a5df9c6aaff504a3c0e7539dc4001 /gtk2_ardour
parent4bc182e7e5e63ff0e7548e1efeca921411c1c831 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc11
1 files changed, 11 insertions, 0 deletions
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()) {