Merge pull request #68728 from Rindbee/fix-wrong-edit

Make sure the popup editor is hidden when selected
This commit is contained in:
Rémi Verschelde 2022-12-10 10:44:50 +01:00 committed by GitHub
commit 48ffaaa81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) { 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]; TreeItem::Cell &selected_cell = p_selected->cells.write[p_col];
bool switched = false; bool switched = false;