diff options
Diffstat (limited to 'Libraries/LibGUI/SortingProxyModel.cpp')
-rw-r--r-- | Libraries/LibGUI/SortingProxyModel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibGUI/SortingProxyModel.cpp b/Libraries/LibGUI/SortingProxyModel.cpp index e25f179b8d..0752dc1206 100644 --- a/Libraries/LibGUI/SortingProxyModel.cpp +++ b/Libraries/LibGUI/SortingProxyModel.cpp @@ -44,7 +44,10 @@ SortingProxyModel::~SortingProxyModel() void SortingProxyModel::invalidate(unsigned int flags) { - m_mappings.clear(); + if (flags == UpdateFlag::DontInvalidateIndexes) + sort(m_last_key_column, m_last_sort_order); + else + m_mappings.clear(); did_update(flags); } |