diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-31 11:47:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-01 09:39:08 +0200 |
commit | dd8313d2c65f0cea68b1ab2aeefb1426b1d3b76c (patch) | |
tree | a89e0065a15d768df69bd25648bae205004f1365 /sw/source/uibase/misc | |
parent | 20369e9b4bc1b1b312113f04b0420d2ae1c7fc03 (diff) |
Resolves: tdf#136189 don't try and sort until treeview is filled
Change-Id: Ic5ac71d88bab7627e14220912f4b9c935f2f1f26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101709
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/misc')
-rw-r--r-- | sw/source/uibase/misc/redlndlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 4f242e273af6..0d21ad65554c 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -717,6 +717,8 @@ void SwRedlineAcceptDlg::InsertParents(SwRedlineTable::size_type nStart, SwRedli pCurrRedline = nullptr; rTreeView.freeze(); + if (m_pTable->IsSorted()) + rTreeView.make_unsorted(); for (SwRedlineTable::size_type i = nStart; i <= nEnd; i++) { const SwRangeRedline& rRedln = pSh->GetRedline(i); @@ -763,6 +765,8 @@ void SwRedlineAcceptDlg::InsertParents(SwRedlineTable::size_type nStart, SwRedli InsertChildren(pRedlineParent, rRedln, bHasRedlineAutoFormat); } rTreeView.thaw(); + if (m_pTable->IsSorted()) + rTreeView.make_sorted(); } void SwRedlineAcceptDlg::CallAcceptReject( bool bSelect, bool bAccept ) |