aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-09-29 20:22:44 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-10-21 22:40:56 +0200
commit0f2b7f45073a121865e5904fd2f526378d8f473a (patch)
tree6445c5b65fbbd3897278babf2524db2627b21848 /src/net/java/sip/communicator/plugin
parent95e2417619429c4cef56e4cb2209c6b26d862528 (diff)
downloadjitsi-0f2b7f45073a121865e5904fd2f526378d8f473a.zip
jitsi-0f2b7f45073a121865e5904fd2f526378d8f473a.tar.gz
jitsi-0f2b7f45073a121865e5904fd2f526378d8f473a.tar.bz2
Disable port field and check default port checkbox in case a loaded
account is using a default port.
Diffstat (limited to 'src/net/java/sip/communicator/plugin')
-rw-r--r--src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java8
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)