Don't try to disconnect signal that has been disconnected before. Fixes #2030.
This commit is contained in:
parent
e2f7a09778
commit
936b99cc3e
|
@ -156,7 +156,9 @@ class VcardWindow:
|
|||
# empty the image
|
||||
self.xml.get_widget('PHOTO_image').set_from_pixbuf(None)
|
||||
self.avatar_encoded = None
|
||||
self.xml.get_widget('PHOTO_eventbox').disconnect(self.avatar_save_as_id)
|
||||
if self.avatar_save_as_id:
|
||||
self.xml.get_widget('PHOTO_eventbox').disconnect(
|
||||
self.avatar_save_as_id)
|
||||
self.avatar_save_as_id = None
|
||||
|
||||
def on_set_avatar_button_clicked(self, widget):
|
||||
|
@ -474,6 +476,7 @@ class VcardWindow:
|
|||
self.xml.get_widget(e + '_entry').set_text('')
|
||||
self.xml.get_widget('DESC_textview').get_buffer().set_text('')
|
||||
self.xml.get_widget('PHOTO_image').set_from_pixbuf(None)
|
||||
if self.avatar_save_as_id:
|
||||
self.xml.get_widget('PHOTO_eventbox').disconnect(
|
||||
self.avatar_save_as_id)
|
||||
self.avatar_save_as_id = None
|
||||
|
|
Loading…
Reference in New Issue