* src/ViewManager.py: fix crash during backup on windows
svn: r8112
This commit is contained in:
parent
c5f64b054b
commit
76f1f1f01e
@ -1,3 +1,6 @@
|
||||
2007-02-13 Brian Matherly <brian@gramps-project.org>
|
||||
* src/ViewManager.py: fix crash during backup on windows
|
||||
|
||||
2007-02-13 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsGEDDB.py: gedcom refactoring
|
||||
* src/GrampsDbUtils/_GedcomParse.py: gedcom refactoring
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user