delete departures;
departures = new Departures(layout, group);
- departures->signal_departure_added.connect(sigc::mem_fun(this, &DeparturesDialog::departure_added));
- departures->signal_departure_removed.connect(sigc::mem_fun(this, &DeparturesDialog::departure_removed));
+ departures->signal_departure_added.connect(sigc::hide<0>(sigc::mem_fun(this, &DeparturesDialog::update_rows)));
+ departures->signal_departure_removed.connect(sigc::hide<0>(sigc::mem_fun(this, &DeparturesDialog::update_rows)));
update_rows();
}
-void DeparturesDialog::departure_added(const Departures::Departure &)
-{
- update_rows();
-}
-
-void DeparturesDialog::departure_removed(const Departures::Departure &)
-{
- update_rows();
-}
-
void DeparturesDialog::update_rows()
{
const list<Departures::Departure> &deps = departures->get_departures();