Get an instance of GuiPluginManager to report errors loading plugins

svn: r18918
This commit is contained in:
Gary Burton 2012-02-17 18:37:02 +00:00
parent 36f9b37e4e
commit 9d46f1ac7e

View File

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