diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-19 16:48:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-19 16:48:31 -0400 |
| commit | 6c4e237d4b43db5c3f9dc01f8c0d3313f3bd2605 (patch) | |
| tree | 7613427fe55d29abe21a11810ff355f84bdb31e7 /src/filetreeitem.h | |
| parent | d32250597abf3139268ec3480af9a1fadcf0d18e (diff) | |
fixed crash because items were sorted while being expanded
when expanding all or updating the tree, only sort once at the end
cache file types
Diffstat (limited to 'src/filetreeitem.h')
| -rw-r--r-- | src/filetreeitem.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filetreeitem.h b/src/filetreeitem.h index 2092782e..750e4719 100644 --- a/src/filetreeitem.h +++ b/src/filetreeitem.h @@ -93,6 +93,7 @@ public: } void sort(int column, Qt::SortOrder order, bool force); + void makeSortingStale(); FileTreeItem* parent() { @@ -223,7 +224,7 @@ public: m_expanded = b; if (m_expanded && m_sortingStale) { - sort(); + queueSort(); } } @@ -314,7 +315,7 @@ private: std::wstring dataRelativeParentPath, bool isDirectory, std::wstring file); void getFileType() const; - void sort(); + void queueSort(); }; #endif // MODORGANIZER_FILETREEITEM_INCLUDED |
