Skip to content

Commit

Permalink
Merge pull request #21385 from groud/fix_itemlist_signal
Browse files Browse the repository at this point in the history
Fix a mistake in itemlist multi_select signal
  • Loading branch information
akien-mga authored Aug 24, 2018
2 parents 6ce4078 + 5b5191c commit f72f744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/item_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
bool selected = !items[j].selected;
select(j, false);
if (selected)
emit_signal("multi_selected", i, true);
emit_signal("multi_selected", j, true);
}

if (mb->get_button_index() == BUTTON_RIGHT) {
Expand Down

0 comments on commit f72f744

Please sign in to comment.