13
0

display triggerbox GUI window when adding a track that has one

This commit is contained in:
Paul Davis 2021-07-22 10:33:27 -06:00
parent c452dcda53
commit aed9adceee

View File

@ -206,6 +206,7 @@
#include "time_info_box.h"
#include "timers.h"
#include "transport_masters_dialog.h"
#include "triggerbox_ui.h"
#include "utils.h"
#include "utils_videotl.h"
#include "video_server_dialog.h"
@ -1532,6 +1533,15 @@ ARDOUR_UI::session_add_midi_route (
error << string_compose(P_("could not create %1 new mixed track", "could not create %1 new mixed tracks", how_many), how_many) << endmsg;
}
boost::shared_ptr<TriggerBox> tb (tracks.front()->triggerbox());
if (tb) {
TriggerBoxWindow* tbw = new TriggerBoxWindow (*(tb.get()));
tbw->present ();
cerr << " window presented\n";
} else {
cerr << "no trigger box\n";
}
} else {
RouteList routes;
@ -1575,6 +1585,15 @@ ARDOUR_UI::session_add_audio_route (
<< endmsg;
}
boost::shared_ptr<TriggerBox> tb (tracks.front()->triggerbox());
if (tb) {
TriggerBoxWindow* tbw = new TriggerBoxWindow (*(tb.get()));
tbw->present ();
cerr << " window presented\n";
} else {
cerr << "no trigger box\n";
}
} else {
routes = _session->new_audio_route (input_channels, output_channels, route_group, how_many, name_template, PresentationInfo::AudioBus, order);