From bc96c75e3931a71ba9a9430a6135a32d0436e96b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 6 Apr 2006 16:50:05 +0000 Subject: [PATCH] remove missing recent files svn: r6279 --- ChangeLog | 8 +++++++- src/RecentFiles.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff33e0685..06624f1b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ +2006-04-06 Don Allingham + * src/RecentFiles.py: check for a files' existence before adding + to the list. + 2006-04-05 Don Allingham + * src/Editors/_EditFamily.py: add lds tab + * src/Editors/_EditLdsOrd.py: save place information, family support * src/SelectFamily.py: added * src/GrampsDb/_ReadXML.py: support new lds stuff * src/GrampsDb/_WriteXML.py: support new lds stuff @@ -10,7 +16,7 @@ * src/BaseDoc.py: pylint * src/DisplayTabs.py: handle temple not set for LdsOrd, provide list of default types - * src/RelLib/_LdsOrd.py: unserialize returns self + * src/RelLib/_LdsOrd.py: unserialize returns self, fix serialize * src/RelLib/_LdsOrdBase.py: variable name change 2006-04-04 Brian Matherly diff --git a/src/RecentFiles.py b/src/RecentFiles.py index d62f3892a..96e3ada94 100644 --- a/src/RecentFiles.py +++ b/src/RecentFiles.py @@ -384,7 +384,8 @@ class GrampsRecentParser: text = ''.join(self.tlist) if tag == "RecentItem": - self.recent_files.append(self.item) + if os.path.isfile(self.item.get_path()): + self.recent_files.append(self.item) elif tag == "Path": self.item.set_path(text) elif tag == "Mime-Type":