summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-02 15:52:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-03 22:15:38 +0200
commite620291e7ce0d7c63a4e23bfcce3fdbd54789469 (patch)
tree9db4c6d16beca9835abb6b6663bdf97585219e30 /svx
parenta5fa2d2d64c7fc2ef096ae61fe2db327a42db2b4 (diff)
Resolves: tdf#125589 we are initially unsorted
so turn on sorting on first sort request Change-Id: I897f64c0695be8cca6d93e234a7d7c4718c94f78 Reviewed-on: https://gerrit.libreoffice.org/73344 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/ctredlin.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 22595f923e2a..9cdfe60d40d5 100644
--- a/svx/source/dialog/ctredlin.cxx
+++ b/svx/source/dialog/ctredlin.cxx
@@ -83,6 +83,7 @@ SvxRedlinTable::SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl,
, bAuthor(false)
, bDate(false)
, bComment(false)
+ , bSorted(false)
, nDaTiMode(SvxRedlinDateMode::BEFORE)
, aDaTiFirst( DateTime::EMPTY )
, aDaTiLast( DateTime::EMPTY )
@@ -121,6 +122,12 @@ SvxRedlinTable::~SvxRedlinTable()
IMPL_LINK(SvxRedlinTable, HeaderBarClick, int, nColumn, void)
{
+ if (!bSorted)
+ {
+ pTreeView->make_sorted();
+ bSorted = true;
+ }
+
bool bSortAtoZ = pTreeView->get_sort_order();
//set new arrow positions in headerbar