Skip to content
Snippets Groups Projects
Commit c158ffe2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't autoconnect signal on a widget than can be hidden (loh_history_checkbutton in vcard window)

parent 5cf91417
No related branches found
No related tags found
No related merge requests found
......@@ -6769,7 +6769,6 @@ Custom</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_log_history_checkbutton_toggled" last_modification_time="Wed, 07 Dec 2005 14:24:05 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
......
......@@ -101,7 +101,7 @@ def __init__(self, contact, account, vcard = False):
self.xml.signal_autoconnect(self)
self.window.show_all()
def on_vcard_information_window_destroy(self, widget = None):
def on_vcard_information_window_destroy(self, widget):
del gajim.interface.instances[self.account]['infos'][self.jid]
def on_vcard_information_window_key_press_event(self, widget, event):
......@@ -304,7 +304,10 @@ def fill_jabber_page(self):
if self.contact.jid in gajim.config.get_per('accounts', self.account,
'no_log_for').split(' '):
log = False
self.xml.get_widget('log_history_checkbutton').set_active(log)
checkbutton = self.xml.get_widget('log_history_checkbutton')
checkbutton.set_active(log)
checkbutton.connect('toggled', self.on_log_history_checkbutton_toggled)
resources = '%s (%s)' % (self.contact.resource, unicode(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment