From 17ae4e4ccc14b2c72c98da0215b698a7ed98c06c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 4 Apr 2018 14:46:46 +0200 Subject: [PATCH] Hide protocol combobox when adding contacts if only XMPP is available --- gajim/dialogs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gajim/dialogs.py b/gajim/dialogs.py index 78ead7285..23441ec5a 100644 --- a/gajim/dialogs.py +++ b/gajim/dialogs.py @@ -1017,6 +1017,9 @@ class AddNewContactWindow: self.account_combobox.set_model(liststore) self.account_combobox.set_active(0) + if len(self.agents) == 1: + self.protocol_hbox.hide() + if self.account: message_buffer = self.message_textview.get_buffer() msg = helpers.from_one_line(helpers.get_subscription_request_msg(