aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/util
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2012-11-23 17:11:44 +0000
committerDamian Minkov <damencho@jitsi.org>2012-11-23 17:11:44 +0000
commit1a3cb8b5a47547bb4ab4a503bc7dc23d07b8ac64 (patch)
tree1962fb9cbb9177126e8ad8542d8943d6348edfb7 /src/net/java/sip/communicator/util
parent773e1fa6f8aced4e4c31e2a5f85e6478b8a02412 (diff)
downloadjitsi-1a3cb8b5a47547bb4ab4a503bc7dc23d07b8ac64.zip
jitsi-1a3cb8b5a47547bb4ab4a503bc7dc23d07b8ac64.tar.gz
jitsi-1a3cb8b5a47547bb4ab4a503bc7dc23d07b8ac64.tar.bz2
Avoids dialing empty numbers and adds option to configure remember password to be checked by default in authentication window, contributed by Tom Denham.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r--src/net/java/sip/communicator/util/swing/AuthenticationWindow.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
index 4d2ec46..14eb550 100644
--- a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
+++ b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
@@ -63,9 +63,11 @@ public class AuthenticationWindow
/**
* The check box indicating if the password should be remembered.
*/
- private final JCheckBox rememberPassCheckBox
- = new SIPCommCheckBox(UtilActivator.getResources()
- .getI18NString("service.gui.REMEMBER_PASSWORD"));
+ private final JCheckBox rememberPassCheckBox = new SIPCommCheckBox(
+ UtilActivator.getResources()
+ .getI18NString("service.gui.REMEMBER_PASSWORD"),
+ UtilActivator.getConfigurationService()
+ .getBoolean(PNAME_SAVE_PASSWORD_TICKED, false));
/**
* Property to disable/enable allow save password option
@@ -75,6 +77,14 @@ public class AuthenticationWindow
"net.java.sip.communicator.util.swing.auth.ALLOW_SAVE_PASSWORD";
/**
+ * Property to set whether the save password option in
+ * the authentication window is ticked by default or not.
+ * By default it is not ticked
+ */
+ private static final String PNAME_SAVE_PASSWORD_TICKED =
+ "net.java.sip.communicator.util.swing.auth.SAVE_PASSWORD_TICKED";
+
+ /**
* The name of the server, for which this authentication window is about.
*/
private String server;