fpicker/source/office/fileview.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit b8e38e458d47ce55432cda7aa03d665a462f2391 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Oct 27 14:07:05 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Oct 27 17:41:00 2020 +0100 Resolves: tdf#137575 fpicker custom sorting setting not restored Change-Id: Id5fae909a12621f68eb8defcb01b91c304c61df6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104888 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx index 49934cc1a028..184a330d2830 100644 --- a/fpicker/source/office/fileview.cxx +++ b/fpicker/source/office/fileview.cxx @@ -1098,8 +1098,8 @@ OUString SvtFileView::GetConfigString() const void SvtFileView::SetConfigString(const OUString& rCfgStr) { sal_Int32 nIdx = 0; - mpImpl->mnSortColumn = static_cast<sal_uInt16>(rCfgStr.getToken( 0, ';', nIdx ).toInt32()); - mpImpl->mbAscending = static_cast<bool>(static_cast<sal_uInt16>(rCfgStr.getToken( 0, ';', nIdx ).toInt32())); + sal_uInt16 nSortColumn = static_cast<sal_uInt16>(rCfgStr.getToken( 0, ';', nIdx ).toInt32()); + bool bAscending = static_cast<bool>(static_cast<sal_uInt16>(rCfgStr.getToken( 0, ';', nIdx ).toInt32())); std::vector<int> aWidths(mpImpl->mxView->TypeColumnVisible() ? 4 : 3, -1); @@ -1120,6 +1120,9 @@ void SvtFileView::SetConfigString(const OUString& rCfgStr) weld::TreeView* pView = mpImpl->mxView->getWidget(); pView->set_column_fixed_widths(aWidths); + if (mpImpl->mnSortColumn != nSortColumn) + pView->set_sort_indicator(TRISTATE_INDET, mpImpl->GetSortColumn()); + mpImpl->Resort_Impl(nSortColumn, bAscending); } SvtFileView_Impl::SvtFileView_Impl(SvtFileView* pAntiImpl, weld::Window* pTopLevel, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits