mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
fix(find_in_files): crash when selecting with RMB
in replace mode, if no search result has been selected and RMB is pressed on a checkbox, the editor crashes in editor/find_in_files.cpp:712 because item is NULL
This commit is contained in:
parent
839cc98cb9
commit
f330add2b8
@ -547,6 +547,7 @@ FindInFilesPanel::FindInFilesPanel() {
|
||||
_results_display->connect("item_edited", this, "_on_item_edited");
|
||||
_results_display->set_hide_root(true);
|
||||
_results_display->set_select_mode(Tree::SELECT_ROW);
|
||||
_results_display->set_allow_rmb_select(true);
|
||||
_results_display->create_item(); // Root
|
||||
vbc->add_child(_results_display);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user