Improve TreeItem API and allow to move nodes
This commit is contained in:
parent
92c04fa727
commit
bca0d36fe6
28 changed files with 527 additions and 289 deletions
|
|
@ -589,8 +589,8 @@ void FileDialog::update_file_list() {
|
|||
files.pop_front();
|
||||
}
|
||||
|
||||
if (tree->get_root() && tree->get_root()->get_children() && tree->get_selected() == nullptr) {
|
||||
tree->get_root()->get_children()->select(0);
|
||||
if (tree->get_root() && tree->get_root()->get_first_child() && tree->get_selected() == nullptr) {
|
||||
tree->get_root()->get_first_child()->select(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue