[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-6-4+backports' - cui/source

Michael Weghorn (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 22 14:29:46 UTC 2020


 cui/source/options/optjava.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 036224a6b74f51c6d44284c1fd33851be2b45ffe
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Thu Oct 22 14:01:07 2020 +0200
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Thu Oct 22 16:29:07 2020 +0200

    Don't make list of JREs active when parent frame is inactive
    
    When the Java framework's direct mode is used,
    there is no use in allowing the user to change the Java
    options in the "Advanced" options page, so the corresponding
    frame is grayed out, s. commit
    2976590ed9f727c24064c97d80a51e9891253119
    ("Gray out Java options when framework's direct mode is used",
    2020-10-21).
    
    For the native gtk3 implementation, this also means that the
    child widget holding the list of JREs ('m_xJavaList')
    automatically remains grayed out as long as the parent widget
    ('m_xJavaFrame') is.
    However, it turns out that this is not true for the
    plain VCL implementation (used e.g. by the gen or kf5 VCL
    plugins) where the child widget can be
    made sensitive while the parent widget is insensitive.
    
    Therefore, commit 3935a0bd3bcf747aa9bede59b045d23ab598f2d4
    ("Properly (un)tick Java checkbox in Java options in direct
    mode", 2020-10-21) resulted in the widget holding the
    list of JREs becoming active again when the
    'EnableHdl_Impl' handler was called in the non-gtk3 case
    (while the parent widget and the buttons to add JREs, edit
    Java parameters and classpath would remained grayed out).
    
    Make sure the widget holding the list of JREs remains
    grayed out along with the whole frame holding the Java
    options.
    
    Change-Id: Ic46bf317afec9bc566493ec56ab5319a78050da0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104669
    Tested-by: Michael Weghorn <m.weghorn at posteo.de>
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>

diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index aef0675365fe..0132f967a7f4 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -141,7 +141,7 @@ SvxJavaOptionsPage::~SvxJavaOptionsPage()
 
 IMPL_LINK_NOARG(SvxJavaOptionsPage, EnableHdl_Impl, weld::Button&, void)
 {
-    bool bEnable = m_xJavaEnableCB->get_active();
+    bool bEnable = m_xJavaFrame->get_sensitive() && m_xJavaEnableCB->get_active();
     m_xJavaList->set_sensitive(bEnable);
 }
 


More information about the Libreoffice-commits mailing list