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:
@@ -192,12 +192,15 @@ OrganizeDialog::OrganizeDialog(weld::Window* pParent, sal_Int16 tabId )
|
|||||||
{
|
{
|
||||||
m_xTabCtrl->connect_enter_page(LINK(this, OrganizeDialog, ActivatePageHdl));
|
m_xTabCtrl->connect_enter_page(LINK(this, OrganizeDialog, ActivatePageHdl));
|
||||||
|
|
||||||
|
OString sPage;
|
||||||
if (tabId == 0)
|
if (tabId == 0)
|
||||||
m_xTabCtrl->set_current_page("modules");
|
sPage = "modules";
|
||||||
else if (tabId == 1)
|
else if (tabId == 1)
|
||||||
m_xTabCtrl->set_current_page("dialogs");
|
sPage = "dialogs";
|
||||||
else
|
else
|
||||||
m_xTabCtrl->set_current_page("libraries");
|
sPage = "libraries";
|
||||||
|
m_xTabCtrl->set_current_page(sPage);
|
||||||
|
ActivatePageHdl(sPage);
|
||||||
|
|
||||||
if (SfxDispatcher* pDispatcher = GetDispatcher())
|
if (SfxDispatcher* pDispatcher = GetDispatcher())
|
||||||
pDispatcher->Execute( SID_BASICIDE_STOREALLMODULESOURCES );
|
pDispatcher->Execute( SID_BASICIDE_STOREALLMODULESOURCES );
|
||||||
|
Reference in New Issue
Block a user