* src/ViewManager.py: fix crash during backup on windows
svn: r8111
This commit is contained in:
parent
fa84c56097
commit
378baf65db
@ -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 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
2007-02-13 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/GrampsWidgets.py: Fall back to gtk.STOCK_DIALOG_INFO in case
|
* src/GrampsWidgets.py: Fall back to gtk.STOCK_DIALOG_INFO in case
|
||||||
gtk.STOCK_INFO is missing.
|
gtk.STOCK_INFO is missing.
|
||||||
|
@ -510,6 +510,8 @@ class ViewManager:
|
|||||||
|
|
||||||
# check to see if the old file exists
|
# check to see if the old file exists
|
||||||
if os.path.exists(backup):
|
if os.path.exists(backup):
|
||||||
|
if os.path.exists(backup + ".old"):
|
||||||
|
os.remove(backup + ".old")
|
||||||
os.rename(backup,backup + ".old")
|
os.rename(backup,backup + ".old")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user