diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-12-12 13:43:48 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-14 13:37:24 +0100 |
commit | bb3d6a788001436ef29d0f5e53431c8c0a75040e (patch) | |
tree | 1fd8e6a25965c01ffaf3764c8f3a8fcc8a544e04 /sc | |
parent | a60f4a6222fdbcb4a1adebe670eaf1636a014da6 (diff) |
tdf#138851: Named range manager always display "Document (Global)" at launching
In Init() method, call SelectionChanged() at the end so we're sure
everything is up-to-date.
Change-Id: I1bd8c44e172cd9f739650a6f76478214c0a31ac0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107628
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 7c3a91e320af..69181ec246b2 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -111,13 +111,6 @@ void ScNameDlg::Init() xTreeView->get_height_rows(10)); m_xRangeManagerTable.reset(new ScRangeManagerTable(std::move(xTreeView), m_RangeMap, maCursorPos)); - if (m_xRangeManagerTable->n_children()) - { - m_xRangeManagerTable->set_cursor(0); - m_xRangeManagerTable->CheckForFormulaString(); - SelectionChanged(); - } - m_xRangeManagerTable->connect_changed( LINK( this, ScNameDlg, SelectionChangedHdl_Impl ) ); m_xBtnOk->connect_clicked( LINK( this, ScNameDlg, OkBtnHdl ) ); @@ -145,6 +138,14 @@ void ScNameDlg::Init() } CheckForEmptyTable(); + + if (m_xRangeManagerTable->n_children()) + { + m_xRangeManagerTable->set_cursor(0); + m_xRangeManagerTable->CheckForFormulaString(); + SelectionChanged(); + } + } bool ScNameDlg::IsRefInputMode() const |