You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix FindInFiles crash when changing language
This commit is contained in:
@@ -1068,7 +1068,7 @@ void FindInFilesPanel::_on_button_clicked(TreeItem *p_item, int p_column, int p_
|
|||||||
if (_file_items_results_count.has(item_parent)) {
|
if (_file_items_results_count.has(item_parent)) {
|
||||||
_file_items_results_count[item_parent]--;
|
_file_items_results_count[item_parent]--;
|
||||||
}
|
}
|
||||||
if (item_parent->get_child_count() < 2) {
|
if (item_parent->get_child_count() < 2 && item_parent != _results_display->get_root()) {
|
||||||
_file_items.erase(item_parent->get_metadata(0));
|
_file_items.erase(item_parent->get_metadata(0));
|
||||||
get_tree()->queue_delete(item_parent);
|
get_tree()->queue_delete(item_parent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user