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>
This commit is contained in:
Caolán McNamara
2020-02-25 15:23:24 +00:00
parent ca79c018f1
commit 9f6be5d9ce

View File

@@ -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 );