summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-03 22:24:58 +0100
committerGitHub <noreply@github.com>2021-03-03 22:24:58 +0100
commit23ea8498b0ad79bc38abfcd9fa6e811479b8aa05 (patch)
treeb94782217a87c3c8085085e9c814582d0549e780 /scene
parent864caf571164dea655a7c1f9d9b423195653dee2 (diff)
parent5cd5722f6aeebebd0a76dd45657190c2efac478e (diff)
Merge pull request #46629 from KoBeWi/tree_column_men
Deselect column only if belongs to deselected item
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 17fe001b5d..6ac4d7fd2f 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3354,10 +3354,10 @@ void Tree::item_selected(int p_column, TreeItem *p_item) {
void Tree::item_deselected(int p_column, TreeItem *p_item) {
if (selected_item == p_item) {
selected_item = nullptr;
- }
- if (selected_col == p_column) {
- selected_col = -1;
+ if (selected_col == p_column) {
+ selected_col = -1;
+ }
}
if (select_mode == SELECT_MULTI || select_mode == SELECT_SINGLE) {