From a8da4bf46025c4daf04ff9ef540c851043a4e31a Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 9 Mar 2010 12:51:18 +0000 Subject: [PATCH] Add message if addon has wrong version. svn: r14711 --- src/PluginUtils/_PluginWindows.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PluginUtils/_PluginWindows.py b/src/PluginUtils/_PluginWindows.py index 4c778236e..b6f9bb7b1 100644 --- a/src/PluginUtils/_PluginWindows.py +++ b/src/PluginUtils/_PluginWindows.py @@ -569,6 +569,11 @@ class PluginStatus(ManagedWindow.ManagedWindow): # If this version is not installed, or > installed, install it good_gpr.add(gpr_file) callback(" " + (_("'%s' is for this version of Gramps.") % gpr_file) + "\n") + else: + # If the plugin is for another version; inform and do nothing + callback(" " + (_("'%s' is for NOT this version of Gramps.") % gpr_file) + "\n") + callback(" " + (_("It is for version %d.%d" % vtup) + "\n")) + continue else: # another register function doesn't have gramps_target_version if gpr_file in good_gpr: