summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Stiewitz <fabian@stiewitz.pw>2019-08-12 10:56:19 +0200
committerFabian Stiewitz <fabian@stiewitz.pw>2019-08-12 11:05:06 +0200
commitf330add2b8e44a7d74dc243a7d71a8c7bc50386c (patch)
tree0d4736bf75f4ea1e31f44b90e8f17fd55e439a1d
parent839cc98cb9d65bd80f50a7f981350966fedc54ee (diff)
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
-rw-r--r--editor/find_in_files.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp
index 8665467f2d..cc2efb92ae 100644
--- a/editor/find_in_files.cpp
+++ b/editor/find_in_files.cpp
@@ -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);