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@7396 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 13, 2007
1 parent 63e198c commit d6b460d6a224e12d7559320b065919c02ab88a45
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 d6b460d

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