diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-11-23 17:11:44 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-11-23 17:11:44 +0000 |
commit | 1a3cb8b5a47547bb4ab4a503bc7dc23d07b8ac64 (patch) | |
tree | 1962fb9cbb9177126e8ad8542d8943d6348edfb7 /src/net/java/sip/communicator/util | |
parent | 773e1fa6f8aced4e4c31e2a5f85e6478b8a02412 (diff) | |
download | jitsi-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.java | 16 |
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; |