[Dicson] some error dialogs improvements. Fixes #5930
This commit is contained in:
parent
155595557d
commit
8ce99327bd
|
@ -195,7 +195,7 @@ class PluginsWindow(object):
|
||||||
gajim.plugin_manager.remove_plugin(plugin)
|
gajim.plugin_manager.remove_plugin(plugin)
|
||||||
except PluginsystemError, e:
|
except PluginsystemError, e:
|
||||||
WarningDialog(_('Unable to properly remove the plugin'),
|
WarningDialog(_('Unable to properly remove the plugin'),
|
||||||
str(e))
|
str(e), self.window)
|
||||||
return
|
return
|
||||||
model.remove(iter)
|
model.remove(iter)
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ class PluginsWindow(object):
|
||||||
_on_plugin_exists(zip_filename)
|
_on_plugin_exists(zip_filename)
|
||||||
return
|
return
|
||||||
|
|
||||||
WarningDialog(error_text, '"%s"' % zip_filename)
|
WarningDialog(error_text, '"%s"' % zip_filename, self.window)
|
||||||
return
|
return
|
||||||
if not plugin:
|
if not plugin:
|
||||||
show_warn_dialog()
|
show_warn_dialog()
|
||||||
|
|
|
@ -530,7 +530,7 @@ class PluginManager(object):
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
return
|
return
|
||||||
# access is denied or other
|
# access is denied or other
|
||||||
raise PluginsystemError(error[1])
|
raise PluginsystemError(error[1][1])
|
||||||
|
|
||||||
if plugin:
|
if plugin:
|
||||||
if plugin.active:
|
if plugin.active:
|
||||||
|
|
Loading…
Reference in New Issue