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 ();
}
void
TransportMastersWidget::add_master ()
{
- if (!TransportMasterManager::instance().add (LTC, "new ltc")) {
- rebuild ();
- }
+ TransportMasterManager::instance().add (LTC, "new ltc");
}
void
void
TransportMastersWidget::Row::remove_clicked ()
{
+ TransportMasterManager::instance().remove (tm->name());
}
void