diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-25 15:23:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-26 09:51:34 +0100 |
commit | 9f6be5d9ce3f2ffb7180aa4bda4bd575fd9928e5 (patch) | |
tree | f23615813d9a6354c376fd0162911bc4586c72d6 /basctl/source | |
parent | ca79c018f1e8bd0e1f42e3cef4b4f5893ef2e47f (diff) |
explicitly call ActivatePageHdl when programatically calling set_current_page
Change-Id: I6113e51565cf4f89e77829f56e08f6b98f2fe244
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89462
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/moduldlg.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index 2e7191ee8abe..2cd8bd8009b3 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -192,12 +192,15 @@ OrganizeDialog::OrganizeDialog(weld::Window* pParent, sal_Int16 tabId ) { m_xTabCtrl->connect_enter_page(LINK(this, OrganizeDialog, ActivatePageHdl)); + OString sPage; if (tabId == 0) - m_xTabCtrl->set_current_page("modules"); + sPage = "modules"; else if (tabId == 1) - m_xTabCtrl->set_current_page("dialogs"); + sPage = "dialogs"; else - m_xTabCtrl->set_current_page("libraries"); + sPage = "libraries"; + m_xTabCtrl->set_current_page(sPage); + ActivatePageHdl(sPage); if (SfxDispatcher* pDispatcher = GetDispatcher()) pDispatcher->Execute( SID_BASICIDE_STOREALLMODULESOURCES ); |