svx/source/tbxctrls/tbunocontroller.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 3e73686c8e72dfba22e3f57446bac3841b74236e
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Fri Nov 29 07:27:44 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Nov 29 09:23:22 2024 +0100

    lok: jsdialog: enable font size box after save
    
    This is followup for commit cbe229ec219e56ce1bb5dd9598f9052a98504249
    lok: jsdialog: enable font name box after save
    
    We need to use weld:: api to inform JSDialogs about
    sensitivity change. Happens in lok after shape
    resize - we cannot open font size dropdown.
    
    Change-Id: I1897502948c90e3bd1e5e3e347429fa9729d87a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177512
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/svx/source/tbxctrls/tbunocontroller.cxx 
b/svx/source/tbxctrls/tbunocontroller.cxx
index 148098c10e82..5575fff9781c 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -155,6 +155,13 @@ public:
 
     virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
 
+    virtual void StateChanged(StateChangedType nStateChange) override
+    {
+        if (nStateChange == StateChangedType::Enable)
+            m_xWidget->set_sensitive(IsEnabled());
+        InterimItemWindow::StateChanged(nStateChange);
+    }
+
     virtual void set_sensitive(bool bSensitive) override
     {
         m_xWidget->set_sensitive(bSensitive);

Reply via email to