diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-05 14:29:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-05 14:29:15 -0400 |
commit | e4a914e26e7dfb30a5758b7e464738aeb48d72b4 (patch) | |
tree | 23848f5fddbdb9198a292127cb1fa67cb708c90b /gtk2_ardour/transport_masters_dialog.cc | |
parent | e2be5b7b02a9e4c234f3a00d985d913e15aad1d7 (diff) |
make remove work for transport masters (bug fix, really)
Diffstat (limited to 'gtk2_ardour/transport_masters_dialog.cc')
-rw-r--r-- | gtk2_ardour/transport_masters_dialog.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk2_ardour/transport_masters_dialog.cc b/gtk2_ardour/transport_masters_dialog.cc index ac2066ceba..027d98964c 100644 --- a/gtk2_ardour/transport_masters_dialog.cc +++ b/gtk2_ardour/transport_masters_dialog.cc @@ -83,6 +83,8 @@ TransportMastersWidget::TransportMastersWidget () table.set_spacings (6); TransportMasterManager::instance().CurrentChanged.connect (current_connection, invalidator (*this), boost::bind (&TransportMastersWidget::current_changed, this, _1, _2), gui_context()); + TransportMasterManager::instance().Added.connect (current_connection, invalidator (*this), boost::bind (&TransportMastersWidget::rebuild, this), gui_context()); + TransportMasterManager::instance().Removed.connect (current_connection, invalidator (*this), boost::bind (&TransportMastersWidget::rebuild, this), gui_context()); rebuild (); } @@ -114,9 +116,7 @@ TransportMastersWidget::current_changed (boost::shared_ptr<TransportMaster> old_ void TransportMastersWidget::add_master () { - if (!TransportMasterManager::instance().add (LTC, "new ltc")) { - rebuild (); - } + TransportMasterManager::instance().add (LTC, "new ltc"); } void @@ -247,6 +247,7 @@ TransportMastersWidget::Row::name_press (GdkEventButton* ev) void TransportMastersWidget::Row::remove_clicked () { + TransportMasterManager::instance().remove (tm->name()); } void |