don't call GTK functions inside a Thread.

This commit is contained in:
Yann Leboulanger 2012-08-24 09:14:08 +02:00
parent 5800e28bba
commit 2540ba7493
1 changed files with 4 additions and 4 deletions

View File

@ -954,13 +954,13 @@ class Interface:
# then the file is not corrupt
jid = unicode(file_props.sender)
if session.file_hash == hash_:
self.popup_ft_result(account, jid, file_props)
ft_win.set_status(file_props, 'ok')
gobject.idle_add(self.popup_ft_result, account, jid, file_props)
gobject.idle_add(ft_win.set_status, file_props, 'ok')
else:
# wrong hash, we need to get the file again!
file_props.error = -10
self.popup_ft_result(account, jid, file_props)
ft_win.set_status(file_props, 'hash_error')
gobject.idle_add(self.popup_ft_result, account, jid, file_props)
gobject.idle_add(ft_win.set_status, file_props, 'hash_error')
# End jingle session
if session:
session.end_session()