Ignore:
Timestamp:
2017-08-31T17:52:05+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #15210 - Fix support of IBM JVM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/remotecontrol/RemoteControlPreference.java

    r12620 r12703  
    172172        ActionListener remoteControlEnabled = e -> {
    173173            GuiHelper.setEnabledRec(wrapper, enableRemoteControl.isSelected());
     174            enableHttpsSupport.setEnabled(RemoteControl.supportsHttps());
    174175            // 'setEnabled(false)' does not work for JLabel with html text, so do it manually
    175176            // FIXME: use QuadStateCheckBox to make checkboxes unset when disabled
    176177            if (installCertificate != null && uninstallCertificate != null) {
    177178                // Install certificate button is enabled if HTTPS is also enabled
    178                 installCertificate.setEnabled(enableRemoteControl.isSelected() && enableHttpsSupport.isSelected());
     179                installCertificate.setEnabled(enableRemoteControl.isSelected() && enableHttpsSupport.isSelected() && RemoteControl.supportsHttps());
    179180                // Uninstall certificate button is always enabled
    180                 uninstallCertificate.setEnabled(true);
     181                uninstallCertificate.setEnabled(RemoteControl.supportsHttps());
    181182            }
    182183        };
Note: See TracChangeset for help on using the changeset viewer.