Allow Plugins to use other dialogs

This commit is contained in:
Philipp Hörist 2017-09-29 02:38:41 +02:00
parent 69248b2fe7
commit dd39067ef7
1 changed files with 4 additions and 2 deletions

View File

@ -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