Skip to content
Permalink
Browse files

Stop loading a python plugin in plugin manager if an error occurs dur…

…ing import.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7396 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 13, 2007
1 parent 54a161e commit 9a054f23229b1f8253d2508408035ffb5c6c7e52
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgspluginmanager.cpp
@@ -90,8 +90,9 @@ void QgsPluginManager::getPythonPluginDescriptions()
{
QString packageName = pluginList[i];

// import plugin's package
QgsPythonUtils::loadPlugin(packageName);
// import plugin's package - skip loading it if an error occured
if (!QgsPythonUtils::loadPlugin(packageName))
continue;

// get information from the plugin
QString pluginName = QgsPythonUtils::getPluginMetadata(packageName, "name");

0 comments on commit 9a054f2

Please sign in to comment.
You can’t perform that action at this time.