diff --git a/src/gui/widgets/chatbox.cpp b/src/gui/widgets/chatbox.cpp index f1be2575aca2..70f14cd7e579 100644 --- a/src/gui/widgets/chatbox.cpp +++ b/src/gui/widgets/chatbox.cpp @@ -101,6 +101,7 @@ void chatbox::finalize_setup() roomlistbox_ = find_widget(this, "room_list", false, true); // We need to bind a lambda here since switch_to_window is overloaded. +// A lambda alone would be more verbose because it'd need to specify all the parameters. connect_signal_notify_modified(*roomlistbox_, std::bind([this]() { switch_to_window(roomlistbox_->get_selected_row()); }));