From 76f1f1f01ed116d7a787d9450ba8e540fade3a5b Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 14 Feb 2007 03:59:21 +0000 Subject: [PATCH] * src/ViewManager.py: fix crash during backup on windows svn: r8112 --- ChangeLog | 3 +++ src/ViewManager.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index bb239c5d3..7a11c4f09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-02-13 Brian Matherly + * src/ViewManager.py: fix crash during backup on windows + 2007-02-13 Don Allingham * src/GrampsDb/_GrampsGEDDB.py: gedcom refactoring * src/GrampsDbUtils/_GedcomParse.py: gedcom refactoring diff --git a/src/ViewManager.py b/src/ViewManager.py index d16b44bc8..affa73b4f 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -511,6 +511,8 @@ class ViewManager: # check to see if the old file exists if os.path.exists(backup): + if os.path.exists(backup + ".old"): + os.remove(backup + ".old") os.rename(backup,backup + ".old") try: