Select TreeItem if none is selected
(cherry picked from commit 282639d653
)
This commit is contained in:
parent
3d34803edc
commit
6440b7fcae
@ -3191,6 +3191,9 @@ void Tree::item_selected(int p_column, TreeItem *p_item) {
|
|||||||
//emit_signal("multi_selected",p_item,p_column,true); - NO this is for TreeItem::select
|
//emit_signal("multi_selected",p_item,p_column,true); - NO this is for TreeItem::select
|
||||||
|
|
||||||
selected_col = p_column;
|
selected_col = p_column;
|
||||||
|
if (!selected_item) {
|
||||||
|
selected_item = p_item;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
select_single_item(p_item, root, p_column);
|
select_single_item(p_item, root, p_column);
|
||||||
|
Loading…
Reference in New Issue
Block a user