[Stéphan K.] show protocol table row in add contact dlg only if we have transports in that dialog
This commit is contained in:
parent
408aae5084
commit
b642f0ee4f
|
@ -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'):
|
if g != _('not in the roster') and g != _('Transports'):
|
||||||
self.group_comboboxentry.append_text(g)
|
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.xml.signal_autoconnect(self)
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
||||||
|
|
|
@ -1749,7 +1749,7 @@
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="label186">
|
<widget class="GtkLabel" id="protocol_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Protocol:</property>
|
<property name="label" translatable="yes">Protocol:</property>
|
||||||
<property name="use_underline">False</property>
|
<property name="use_underline">False</property>
|
||||||
|
|
Loading…
Reference in New Issue