Fixed plugin precedence for the first plugin in plugin list.

If a plugin was in both the system wide and ther user's plugin folder and the plugin was the first in the list the plugin was loaded and listed twice.
This commit is contained in:
Philipp Wolfer
2014-04-11 21:38:11 +02:00
parent 050b81a16c
commit aa89e5a3a3

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)