summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-22 20:06:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-23 10:37:43 +0200
commit7db082e5758033c1d15ff885400fd98664d2837b (patch)
tree3a2837ef77b6916d8ceb3691699c33bb70d01e6f /vcl/source
parent5c0d98c34ca0f3cbbac39fc7f9a3208a28aab18a (diff)
keep sensitivity in sync with StateChangedType::Enable
Change-Id: I49321251d8fab6b6d0e44897bcb9c201aa5e2d45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99254 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/InterimItemWindow.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/control/InterimItemWindow.cxx b/vcl/source/control/InterimItemWindow.cxx
index e42a331438f2..8b815815fbfb 100644
--- a/vcl/source/control/InterimItemWindow.cxx
+++ b/vcl/source/control/InterimItemWindow.cxx
@@ -25,6 +25,13 @@ InterimItemWindow::InterimItemWindow(vcl::Window* pParent, const OUString& rUIXM
SetPaintTransparent(true);
}
+void InterimItemWindow::StateChanged(StateChangedType nStateChange)
+{
+ if (nStateChange == StateChangedType::Enable)
+ m_xContainer->set_sensitive(IsEnabled());
+ Control::StateChanged(nStateChange);
+}
+
InterimItemWindow::~InterimItemWindow() { disposeOnce(); }
void InterimItemWindow::dispose()