From 71463fe00d80ce08c9f0502f36a3891357618e0f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 22 Apr 2003 03:42:15 +0000 Subject: [PATCH] Reload problem fix for plugins svn: r1472 --- src/Plugins.py | 6 ++++-- src/config.glade | 40 ++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/Plugins.py b/src/Plugins.py index 5fcd504d5..d671a1675 100644 --- a/src/Plugins.py +++ b/src/Plugins.py @@ -325,7 +325,7 @@ def load_plugins(direct): # if the path has not already been loaded, save it in the _loaddir # list for use on reloading - + if direct not in _loaddir: _loaddir.append(direct) @@ -378,6 +378,7 @@ def reload_plugins(obj): for plugin in _failed: try: __import__(plugin) + del _failmsg[plugin] except: _failmsg.append((plugin,sys.exc_info())) @@ -394,7 +395,8 @@ def reload_plugins(obj): plugin = match.groups()[0] try: a = __import__(plugin) - _success.append(a) + if a not in _success: + _success.append(a) except: _failmsg.append((file,sys.exc_info())) diff --git a/src/config.glade b/src/config.glade index 5f7036cb9..de6d1c35c 100644 --- a/src/config.glade +++ b/src/config.glade @@ -47,9 +47,9 @@ Preferences dialog under the Settings menu. True Researcher information - #53e00817a71b - #53e00817d488 - #b7a440c2d478 + #4a60082ad408 + #5de8082ab9eb + #a1f8081c0001 gramps.png @@ -487,9 +487,9 @@ files, you may leave it blank. True Numerical date formats - #53e00817a71b - #53e00817d488 - #b7a440c2d478 + #85d8082ad408 + #9850082ab9eb + #a1f8081c0001 gramps.xpm @@ -635,9 +635,9 @@ numerical dates True Alternate calendar support - #53e00817a71b - #53e00817d488 - #b7a440c2d478 + #94d0082cd408 + #9fb0082cb9eb + #a1f8081c0001 gramps.xpm @@ -732,9 +732,9 @@ more of these alternate calendars, enable alternate calendar support. True LDS extensions - #53e00817a71b - #53e00817d488 - #b7a440c2d478 + #c8d8082cd408 + #dad8082cb9eb + #a1f8081c0001 gramps.xpm @@ -890,8 +890,8 @@ Preferences dialog under the Settings menu. True Researcher Information - #53e00817a71b - #53e00817d488 + #9358082dd408 + #a900082db9eb #e1e0dbdac5c5 gramps.png @@ -1330,8 +1330,8 @@ files, you may leave it blank. True Numerical date formats - #53e00817a71b - #53e00817d488 + #c118082dd408 + #d3e0082db9eb #e1e0dbdac5c5 gramps.png @@ -1470,8 +1470,8 @@ numerical dates True Alternate calendar support - #53e00817a71b - #53e00817d488 + #ffd0082dd408 + #97d0082eb9eb #e1e0dbdac5c5 gramps.png @@ -1559,8 +1559,8 @@ more of these alternate calendars, enable alternate calendar support. True LDS extensions - #53e00817a71b - #53e00817d488 + #36f8082fd408 + #af28082eb9eb #e1e0dbdac5c5 gramps.png