diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-04-17 06:58:21 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-04-17 06:58:21 -0400 |
| commit | 0faa5d69953f41deafba33cf36317127cbea8a8a (patch) | |
| tree | b0b00df4afd0e8a1ce477e438e6cf52a5a5823cf /src/filetreeitem.cpp | |
| parent | 502e752b0af4e7a6800a7504ddbefbeef99778e4 (diff) | |
fixed crashes and empty items in the file tree
sorting and removing items have to be queued since they corrupt various internal structures in Qt when done during layout
Diffstat (limited to 'src/filetreeitem.cpp')
| -rw-r--r-- | src/filetreeitem.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filetreeitem.cpp b/src/filetreeitem.cpp index e5425573..64d902ee 100644 --- a/src/filetreeitem.cpp +++ b/src/filetreeitem.cpp @@ -366,8 +366,7 @@ void FileTreeItem::unload() return; } - m_loaded = false; - m_children.clear(); + clear(); } bool FileTreeItem::areChildrenVisible() const |
