summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-11-16 16:25:36 +0800
committerRindbee <idleman@yeah.net>2022-11-16 18:36:49 +0800
commit716e5ab1663aabce3c8f90b33011ec32ab6a6e6a (patch)
tree14a65043cc36c35abc3238dcf2ab70266e5dd150 /scene
parentcfb9cae23a50554872ae49b6a2aec8855b294eb9 (diff)
Make sure the popup editor is hidden when selected
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 2da76883b4..7b89b3bd31 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;