avoid redundant IO port reconnections in Tracks runtime case
[ardour.git] / gtk2_ardour / main.cc
index abdfa35877a8e461b925664e20f252b2d408bf74..f43d1bd4f471cb3f11a3d2d78778f15bbc254254 100644 (file)
@@ -345,8 +345,15 @@ int main (int argc, char *argv[])
        }
 #endif
 
+       UIConfiguration* ui_config = new UIConfiguration;
+
+       if (ui_config->pre_gui_init ()) {
+               error << _("Could not complete pre-GUI initialization") << endmsg;
+               exit (1);
+       }
+       
        try {
-               ui = new ARDOUR_UI (&argc, &argv, localedir.c_str());
+               ui = new ARDOUR_UI (&argc, &argv, localedir.c_str(), ui_config);
        } catch (failed_constructor& err) {
                error << string_compose (_("could not create %1 GUI"), PROGRAM_NAME) << endmsg;
                exit (1);