diff options
Diffstat (limited to 'src/net/java/sip/communicator/plugin')
-rw-r--r-- | src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java index fc0e2e2..9243d29 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java @@ -461,8 +461,12 @@ public class FirstWizardPage if (port != null) { this.portField.setText(port); - this.portField.setEnabled(true); - this.defaultPort.setSelected(false); + + boolean defaultPort = + (useSecureConnection && DEFAULT_SECURE_PORT.equals(port)) + || DEFAULT_PLAINTEXT_PORT.equals(port); + this.portField.setEnabled(!defaultPort); + this.defaultPort.setSelected(defaultPort); } if (autoNickChange != null) |