From 378baf65db401c1fb07d0fa5ad18591443e91300 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 14 Feb 2007 03:55:40 +0000 Subject: [PATCH] * src/ViewManager.py: fix crash during backup on windows svn: r8111 --- gramps2/ChangeLog | 3 +++ gramps2/src/ViewManager.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 25ba3aac8..de9b40201 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-02-13 Brian Matherly + * src/ViewManager.py: fix crash during backup on windows + 2007-02-13 Zsolt Foldvari * src/GrampsWidgets.py: Fall back to gtk.STOCK_DIALOG_INFO in case gtk.STOCK_INFO is missing. diff --git a/gramps2/src/ViewManager.py b/gramps2/src/ViewManager.py index cdd634882..711ed2f10 100644 --- a/gramps2/src/ViewManager.py +++ b/gramps2/src/ViewManager.py @@ -510,6 +510,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: