Merge pull request #346 from phw/plugin-fixes

Fixed plugin precedence for the first plugin in plugin list.
This commit is contained in:
Laurent Monin
2014-06-23 12:03:22 +02:00

View File

@@ -201,7 +201,7 @@ class PluginManager(QtCore.QObject):
sorted(compatible_versions)]))
plugin.compatible = True
setattr(picard.plugins, name, plugin_module)
if index:
if index is not None:
self.plugins[index] = plugin
else:
self.plugins.append(plugin)