vcl/qt5/QtInstanceNotebook.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 91402db28d9d67f64fe9acc1b4fb3df747fd8f67
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon May 12 14:22:48 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Mon May 12 21:02:18 2025 +0200

    tdf#130857 qt weld: Call correct handler when switching tab
    
    When switching to a new tab, call the
    `m_aEnterPageHdl` for the new tab page, not
    the `m_aLeavePageHdl` that already gets called
    with the ID of the old page.
    
    This fixes a copy-paste error from
    
        commit d4edde13e808aee6ed1a4b8ae049a956733ee4b9
        Author: Michael Weghorn <m.wegh...@posteo.de>
        Date:   Sun Nov 10 19:35:00 2024 +0100
    
            tdf#130857 qt weld: Call handlers when tab page changes
    
    that resulted in the button labels not getting
    updated as expected when switching tabs in the
    Welcome dialog newly declared as supported in
    previous commit
    
        Change-Id: Ia224b68b36153b1e818d506e0dc9643292a394d2
        Author: Michael Weghorn <m.wegh...@posteo.de>
        Date:   Mon May 12 14:05:23 2025 +0200
    
            tdf#130857 qt weld: Support new Welcome dialog
    
    Change-Id: I7c46961500eeeee326e859f7778cd8278186b39a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185216
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/qt5/QtInstanceNotebook.cxx b/vcl/qt5/QtInstanceNotebook.cxx
index c8da18d5f5d6..706ee6aa583d 100644
--- a/vcl/qt5/QtInstanceNotebook.cxx
+++ b/vcl/qt5/QtInstanceNotebook.cxx
@@ -186,7 +186,7 @@ void QtInstanceNotebook::currentTabChanged()
     m_sCurrentTabId = get_current_page_ident();
 
     if (!m_sCurrentTabId.isEmpty())
-        m_aLeavePageHdl.Call(m_sCurrentTabId);
+        m_aEnterPageHdl.Call(m_sCurrentTabId);
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */

Reply via email to