summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dialogs.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-25 13:02:31 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-09-25 13:02:31 -0600
commit468731c14b9bde769b79ae1a88277701f3f9d068 (patch)
treebd366db36c59109b3d2023826d644ff57c1da394 /gtk2_ardour/ardour_ui_dialogs.cc
parent5ec5bc4523e5c0fd998a6a133c6a03ab1475f063 (diff)
goodbye Profile->...trx
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc26
1 files changed, 12 insertions, 14 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index f5cf855843..cee609349c 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -234,20 +234,18 @@ ARDOUR_UI::set_session (Session *s)
_session->master_out() &&
_session->master_out()->n_outputs().n(DataType::AUDIO) > 0) {
- if (!ARDOUR::Profile->get_trx()) {
- editor_meter = new LevelMeterHBox(_session);
- editor_meter->set_meter (_session->master_out()->shared_peak_meter().get());
- editor_meter->clear_meters();
- editor_meter->setup_meters (30, 10, 6);
- editor_meter->show();
-
- editor_meter_table.set_spacings(3);
- editor_meter_table.attach(*editor_meter, 0,1, 0,1, FILL, FILL);
- editor_meter_table.attach(editor_meter_peak_display, 0,1, 1,2, FILL, EXPAND|FILL);
-
- editor_meter->show();
- editor_meter_peak_display.show();
- }
+ editor_meter = new LevelMeterHBox(_session);
+ editor_meter->set_meter (_session->master_out()->shared_peak_meter().get());
+ editor_meter->clear_meters();
+ editor_meter->setup_meters (30, 10, 6);
+ editor_meter->show();
+
+ editor_meter_table.set_spacings(3);
+ editor_meter_table.attach(*editor_meter, 0,1, 0,1, FILL, FILL);
+ editor_meter_table.attach(editor_meter_peak_display, 0,1, 1,2, FILL, EXPAND|FILL);
+
+ editor_meter->show();
+ editor_meter_peak_display.show();
ArdourMeter::ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_peak_display));
ArdourMeter::ResetRoutePeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_route_peak_display));