backup helper: Don't remove previous backup
The backup helper is no longer supposed to override previous backups.
This commit is contained in:
parent
1b96ab15fd
commit
cb46cac637
|
@ -182,8 +182,6 @@ void createBackupFile(const std::string &originalPath, std::string &backupPath,
|
||||||
} // else: the backup file already exists -> find another file name
|
} // else: the backup file already exists -> find another file name
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove backup file if already exists
|
|
||||||
std::remove(backupPath.c_str());
|
|
||||||
// ensure original file is closed
|
// ensure original file is closed
|
||||||
if(originalStream.is_open()) {
|
if(originalStream.is_open()) {
|
||||||
originalStream.close();
|
originalStream.close();
|
||||||
|
|
Loading…
Reference in New Issue