Skip to content

Commit

Permalink
GUI2/Chatbox: clarified a comment
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vultraz committed Aug 23, 2017
1 parent 95d398b commit e8037ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/widgets/chatbox.cpp
Expand Up @@ -101,6 +101,7 @@ void chatbox::finalize_setup()
roomlistbox_ = find_widget<listbox>(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()); }));

Expand Down

0 comments on commit e8037ae

Please sign in to comment.