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
This commit is contained in:
Paul Davis 2012-12-12 14:55:01 +00:00
parent 4bc182e7e5
commit f1521f241c
1 changed files with 11 additions and 0 deletions

View File

@ -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()) {