Kaydet (Commit) e620291e authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a5fa2d2d
...@@ -92,6 +92,7 @@ private: ...@@ -92,6 +92,7 @@ private:
bool bAuthor; bool bAuthor;
bool bDate; bool bDate;
bool bComment; bool bComment;
bool bSorted;
SvxRedlinDateMode nDaTiMode; SvxRedlinDateMode nDaTiMode;
DateTime aDaTiFirst; DateTime aDaTiFirst;
DateTime aDaTiLast; DateTime aDaTiLast;
......
...@@ -1748,7 +1748,7 @@ int ScAcceptChgDlg::ColCompareHdl(const weld::TreeIter& rLeft, const weld::TreeI ...@@ -1748,7 +1748,7 @@ int ScAcceptChgDlg::ColCompareHdl(const weld::TreeIter& rLeft, const weld::TreeI
weld::TreeView& rTreeView = pTheView->GetWidget(); weld::TreeView& rTreeView = pTheView->GetWidget();
sal_Int32 nCompare = 0; sal_Int32 nCompare = 0;
SCCOL nSortCol= rTreeView.get_sort_column(); SCCOL nSortCol = rTreeView.get_sort_column();
if (CALC_DATE == nSortCol) if (CALC_DATE == nSortCol)
{ {
......
...@@ -83,6 +83,7 @@ SvxRedlinTable::SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl, ...@@ -83,6 +83,7 @@ SvxRedlinTable::SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl,
, bAuthor(false) , bAuthor(false)
, bDate(false) , bDate(false)
, bComment(false) , bComment(false)
, bSorted(false)
, nDaTiMode(SvxRedlinDateMode::BEFORE) , nDaTiMode(SvxRedlinDateMode::BEFORE)
, aDaTiFirst( DateTime::EMPTY ) , aDaTiFirst( DateTime::EMPTY )
, aDaTiLast( DateTime::EMPTY ) , aDaTiLast( DateTime::EMPTY )
...@@ -121,6 +122,12 @@ SvxRedlinTable::~SvxRedlinTable() ...@@ -121,6 +122,12 @@ SvxRedlinTable::~SvxRedlinTable()
IMPL_LINK(SvxRedlinTable, HeaderBarClick, int, nColumn, void) IMPL_LINK(SvxRedlinTable, HeaderBarClick, int, nColumn, void)
{ {
if (!bSorted)
{
pTreeView->make_sorted();
bSorted = true;
}
bool bSortAtoZ = pTreeView->get_sort_order(); bool bSortAtoZ = pTreeView->get_sort_order();
//set new arrow positions in headerbar //set new arrow positions in headerbar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment