aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRene Treffer <treffer@measite.de>2014-04-03 21:25:03 +0200
committerRene Treffer <treffer@measite.de>2014-04-03 21:25:03 +0200
commit4ea11c15e3670f7fe26dfa90b8493a01cfda9b10 (patch)
tree11aa5697171691ebc924c74d713210726fcd95f5
parent56848492496f5f8ccb044ce75bb5889e5b93170c (diff)
Only apply defaults if the account is new
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/ui/EditAccount.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/EditAccount.java b/src/eu/siacs/conversations/ui/EditAccount.java
index 46f4ecfa..8b1c0fa6 100644
--- a/src/eu/siacs/conversations/ui/EditAccount.java
+++ b/src/eu/siacs/conversations/ui/EditAccount.java
@@ -132,9 +132,9 @@ public class EditAccount extends DialogFragment {
account.setServer(server);
} else {
account = new Account(username, server, password);
+ account.setOption(Account.OPTION_USETLS, true);
+ account.setOption(Account.OPTION_USECOMPRESSION, true);
}
- account.setOption(Account.OPTION_USETLS, true);
- account.setOption(Account.OPTION_USECOMPRESSION, true);
account.setOption(Account.OPTION_REGISTER, register.isChecked());
if (listener != null) {
listener.onAccountEdited(account);