diff --git a/src/dialogs.py b/src/dialogs.py index 50946a4e5389fb03cc7bc2dd333c846a5aeb7eff..1af9ab2311af97e0a9e259bb357f820c76a44680 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -319,6 +319,14 @@ def __init__(self, plugin, account, jid = None): 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 d9d4936c9dd279385cb6469653ccd6e068a55bc8..9d76fdc3e8e1b5d690c5395a58094a6beeea5573 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -1749,7 +1749,7 @@ </child> <child> - <widget class="GtkLabel" id="label186"> + <widget class="GtkLabel" id="protocol_label"> <property name="visible">True</property> <property name="label" translatable="yes">Protocol:</property> <property name="use_underline">False</property>