From 8ce99327bd7d014a53a5b4b533eb256f92b17ded Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 21 Sep 2010 21:44:04 +0200
Subject: [PATCH] [Dicson] some error dialogs improvements. Fixes #5930

---
 src/plugins/gui.py           | 4 ++--
 src/plugins/pluginmanager.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/gui.py b/src/plugins/gui.py
index b0e526f1e9..45e6b2927a 100644
--- a/src/plugins/gui.py
+++ b/src/plugins/gui.py
@@ -195,7 +195,7 @@ class PluginsWindow(object):
                 gajim.plugin_manager.remove_plugin(plugin)
             except PluginsystemError, e:
                 WarningDialog(_('Unable to properly remove the plugin'),
-                    str(e))
+                    str(e), self.window)
                 return
             model.remove(iter)
 
@@ -237,7 +237,7 @@ class PluginsWindow(object):
                     _on_plugin_exists(zip_filename)
                     return
 
-                WarningDialog(error_text, '"%s"' % zip_filename)
+                WarningDialog(error_text, '"%s"' % zip_filename, self.window)
                 return
             if not plugin:
                 show_warn_dialog()
diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py
index d535081ae5..5caefbe6bb 100644
--- a/src/plugins/pluginmanager.py
+++ b/src/plugins/pluginmanager.py
@@ -530,7 +530,7 @@ class PluginManager(object):
                 os.unlink(path)
                 return
             # access is denied or other
-            raise PluginsystemError(error[1])
+            raise PluginsystemError(error[1][1])
 
         if plugin:
             if plugin.active:
-- 
GitLab