Get an instance of GuiPluginManager to report errors loading plugins

svn: r18919
This commit is contained in:
Gary Burton 2012-02-17 18:37:37 +00:00
parent edaea54a84
commit 73a32cfeec

View File

@ -1870,7 +1870,8 @@ def run_plugin(pdata, dbstate, uistate):
1/ load plugin. 1/ load plugin.
2/ the report is run 2/ the report is run
""" """
mod = GuiPluginManager.get_instance().load_plugin(pdata) pmgr = GuiPluginManager.get_instance()
mod = pmgr.load_plugin(pdata)
if not mod: if not mod:
#import of plugin failed #import of plugin failed
ErrorDialog( ErrorDialog(