From aa89e5a3a355ab8a89c136ad158bdfbc8bb4dabf Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 11 Apr 2014 21:38:11 +0200 Subject: [PATCH] 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. --- picard/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/plugin.py b/picard/plugin.py index 844dd2252..3abe7dcca 100644 --- a/picard/plugin.py +++ b/picard/plugin.py @@ -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)