From 6250ba345e8077ee913bd1fa2a3d5e2c5ae0c416 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 1 Aug 2014 13:03:18 +0200 Subject: Fix the data form retrieval, by making it non-blocking --- src/tabs/muctab.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/tabs') diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index 4dc7a2cf..5ebaf522 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -361,13 +361,15 @@ class MucTab(ChatTab): """ /configure """ - form = fixes.get_room_form(self.core.xmpp, self.name) - if not form: - self.core.information( + def on_form_received(form): + if not form: + self.core.information( _('Could not retrieve the configuration form'), _('Error')) - return - self.core.open_new_form(form, self.cancel_config, self.send_config) + return + self.core.open_new_form(form, self.cancel_config, self.send_config) + + form = fixes.get_room_form(self.core.xmpp, self.name, on_form_received) def cancel_config(self, form): """ -- cgit v1.2.3