[Libreoffice-commits] core.git: basctl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 26 08:52:15 UTC 2020


 basctl/source/basicide/moduldlg.cxx |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 9f6be5d9ce3f2ffb7180aa4bda4bd575fd9928e5
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Feb 25 15:23:24 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Feb 26 09:51:34 2020 +0100

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list