diff --git a/src/dialogs.py b/src/dialogs.py index 50946a4e5..1af9ab231 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -319,6 +319,14 @@ _('Please fill in the data of the contact you want to add in account %s') %accou if g != _('not in the roster') and g != _('Transports'): self.group_comboboxentry.append_text(g) + if not jid_agents: + # There are no transports, just hide the protocol combobox + self.protocol_combobox.hide() + self.protocol_combobox.set_no_show_all(True) + protocol_label = self.xml.get_widget('protocol_label') + protocol_label.hide() + protocol_label.set_no_show_all(True) + self.xml.signal_autoconnect(self) self.window.show_all() diff --git a/src/gtkgui.glade b/src/gtkgui.glade index d9d4936c9..9d76fdc3e 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -1749,7 +1749,7 @@ - + True Protocol: False