mirror of
https://github.com/tiennm99/godot.git
synced 2026-06-18 07:33:33 +00:00
Fixes add group in Group Editor dialog
Before this fix, new group can't be created if any existing group starts with the new name.
This commit is contained in:
@@ -197,7 +197,7 @@ void GroupDialog::_add_group(String p_name) {
|
||||
}
|
||||
|
||||
String name = p_name.strip_edges();
|
||||
if (name == "" || groups->search_item_text(name)) {
|
||||
if (name.empty() || groups->get_item_with_text(name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user