summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/groups_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp
index 41878d18b0..e6bd843778 100644
--- a/editor/groups_editor.cpp
+++ b/editor/groups_editor.cpp
@@ -121,7 +121,7 @@ bool GroupDialog::_can_edit(Node *p_node, String p_group) {
}
void GroupDialog::_add_pressed() {
- TreeItem *selected = nodes_to_add->get_selected();
+ TreeItem *selected = nodes_to_add->get_next_selected(NULL);
if (!selected) {
return;
@@ -150,7 +150,7 @@ void GroupDialog::_add_pressed() {
}
void GroupDialog::_removed_pressed() {
- TreeItem *selected = nodes_to_remove->get_selected();
+ TreeItem *selected = nodes_to_remove->get_next_selected(NULL);
if (!selected) {
return;