Version: (using KDE 4.1.3) OS: Linux Installed from: SuSE RPMs KSaveFile::simpleBackupFile eventually calls QFile::copy with the backup file name. However, if the file exists, QFile::copy just fails. I would expect the behavior to be such that existing backup files would be overwritten by repeated calls to simpleBackupFile(), in which case, old backups should be removed before calling QFile::copy(). The numberedBackupFile() function does this. Original email at http://lists.kde.org/?l=kde-devel&m=123007467204148&w=2 I'll attach a simple patch.
Created attachment 29599 [details] Patch to remove backup file before attempting to copy to it
SVN commit 901154 by winterz: In simpleBackupFile(), remove the backup file before copying the source file. This makes the copy work, just in case a backup file already exists. The remove will fail if a backup file doesn't exist (on the first call), but that's ok. Patch from Robby Stephenson. BUG: 178640 M +1 -0 ksavefile.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=901154