Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/connection.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index 20e1fe491..4218f7c9a 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -577,7 +577,10 @@ class Connection(ConnectionHandlers):
if len(self._hosts):
# No config option exist when creating a new account
if self.last_connection_type:
- self._connection_types = [self.last_connection_type]
+ if self.last_connection_type == 'tcp':
+ self._connection_types = ['plain']
+ else:
+ self._connection_types = [self.last_connection_type]
elif self.name in gajim.config.get_per('accounts'):
self._connection_types = gajim.config.get_per('accounts', self.name,
'connection_types').split()