From b0e1bbac5669aace41112d52b79feeaeee8681a6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 28 Aug 2011 10:08:38 +0200 Subject: [PATCH] run plugin_downbloaded callback in the main thread instead of in Ftp Thread. Fixes freeze under windows when plugin is downloaded --- plugins/plugin_installer/plugin_installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugin_installer/plugin_installer.py b/plugins/plugin_installer/plugin_installer.py index 56373b54a..b78572f63 100644 --- a/plugins/plugin_installer/plugin_installer.py +++ b/plugins/plugin_installer/plugin_installer.py @@ -432,7 +432,8 @@ class Ftp(threading.Thread): print 'ERROR: cannot read file "%s"' % filename os.unlink(filename) self.ftp.quit() - self.window.emit('plugin_downloaded', self.remote_dirs) + gobject.idle_add(self.window.emit, 'plugin_downloaded', + self.remote_dirs) gobject.source_remove(self.pulse)