From dd39067ef707e3cf2d1b2fd03b3e3c5b8eb5b652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 29 Sep 2017 02:38:41 +0200 Subject: [PATCH] Allow Plugins to use other dialogs --- gajim/plugins/gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gajim/plugins/gui.py b/gajim/plugins/gui.py index 086294a39..f54f7dc6e 100644 --- a/gajim/plugins/gui.py +++ b/gajim/plugins/gui.py @@ -239,8 +239,10 @@ class PluginsWindow(object): plugin_name = model.get_value(iter, Column.NAME) is_active = model.get_value(iter, Column.ACTIVE) - - result = plugin.config_dialog.run(self.window) + if isinstance(plugin.config_dialog, GajimPluginConfigDialog): + plugin.config_dialog.run(self.window) + else: + plugin.config_dialog(self.window) else: # No plugin selected. this should never be reached. As configure