diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-12-10 10:44:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 10:44:50 +0100 |
commit | 48ffaaa81c7459393cdd51c5fc40d72ae7555a94 (patch) | |
tree | 888a88ae6edd76525f62454456bf15e4d0fd9ef4 | |
parent | f6ea295bb10da4bad623433c74086072fb0e2a6a (diff) | |
parent | 716e5ab1663aabce3c8f90b33011ec32ab6a6e6a (diff) |
Merge pull request #68728 from Rindbee/fix-wrong-edit
Make sure the popup editor is hidden when selected
-rw-r--r-- | scene/gui/tree.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 3996d2d65d..9e22a414ed 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2471,6 +2471,8 @@ bool Tree::_is_sibling_branch_selected(TreeItem *p_from) const { } void Tree::select_single_item(TreeItem *p_selected, TreeItem *p_current, int p_col, TreeItem *p_prev, bool *r_in_range, bool p_force_deselect) { + popup_editor->hide(); + TreeItem::Cell &selected_cell = p_selected->cells.write[p_col]; bool switched = false; |