diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-09 16:21:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-09 18:34:31 +0100 |
commit | c50b4cb4b69597400a8325e0a200c95cf41c62f0 (patch) | |
tree | 1f2df946731e95b72a8d3278c92cffa4697afdcd /vcl | |
parent | 0940261be357bfaa42d06444e91e7b3e6735e8d8 (diff) |
Enable/Disable of children shouldn't be necessary
the builder counterpart to...
commit 1d69cf32a73c0720882731ebf3eb5d2f07fce246
Author: Caolán McNamara <caolanm@redhat.com>
Date: Fri Oct 18 19:23:40 2019 +0100
Enable/Disable of children shouldn't be necessary
Change-Id: Iaad132d1cabf657d884e38b33a167ed165216f43
Reviewed-on: https://gerrit.libreoffice.org/84773
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/builder.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index fca79c624896..07e54d1340db 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2422,6 +2422,10 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & SAL_INFO_IF(!xWindow, "vcl.layout", "probably need to implement " << name << " or add a make" << name << " function"); if (xWindow) { + // child windows of disabled windows are made disabled by vcl by default, we don't want that + WindowImpl *pWindowImpl = xWindow->ImplGetWindowImpl(); + pWindowImpl->mbDisabled = false; + xWindow->SetHelpId(m_sHelpRoot + id); SAL_INFO("vcl.layout", "for " << name << ", created " << xWindow.get() << " child of " << |