From 7bf44e80f3edfc8e6a57103dd7b64f4889e388e2 Mon Sep 17 00:00:00 2001 From: Eddy De Greef Date: Fri, 16 Jan 2004 11:49:54 +0000 Subject: [PATCH] Fix for SF bug #878183: File deleted. Don't delete incremental backup files when incremental backups are off. --- source/file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/file.c b/source/file.c index efe099e..db70588 100644 --- a/source/file.c +++ b/source/file.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: file.c,v 1.73 2004/01/16 02:59:15 tksoh Exp $"; +static const char CVSID[] = "$Id: file.c,v 1.74 2004/01/16 11:49:54 edg Exp $"; /******************************************************************************* * * * file.c -- Nirvana Editor file i/o * @@ -1079,6 +1079,10 @@ void RemoveBackupFile(WindowInfo *window) { char name[MAXPATHLEN]; + /* Don't delete backup files when backups aren't activated. */ + if (window->autoSave == FALSE) + return; + backupFileName(window, name, sizeof(name)); remove(name); } -- 2.11.4.GIT