diff options
-rw-r--r-- | svx/source/tbxctrls/tbunocontroller.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx index a712aa9197cc..4194acd89310 100644 --- a/svx/source/tbxctrls/tbunocontroller.cxx +++ b/svx/source/tbxctrls/tbunocontroller.cxx @@ -153,6 +153,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); |