suspend route redisplay for (rec-en, solo, mute and monitor) batch changes
[ardour.git] / gtk2_ardour / ardour_ui.cc
index d9ac37e36f5c94b038def8a136da7cfaa70746d4..cde9d0d9eeb1a13754f7a19e0cc03c6d0bb0d9bf 100644 (file)
@@ -138,6 +138,7 @@ typedef uint64_t microseconds_t;
 #include "i18n.h"
 
 using namespace ARDOUR;
+using namespace ARDOUR_UI_UTILS;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
@@ -3392,6 +3393,7 @@ ARDOUR_UI::add_route (Gtk::Window* float_window)
        setup_order_hint();
 
        string template_path = add_route_dialog->track_template();
+       DisplaySuspender ds;
 
        if (!template_path.empty()) {
                if (add_route_dialog->name_template_is_default())  {