diff --git a/src/core/Database.cpp b/src/core/Database.cpp index 94113546d..649b4e650 100644 --- a/src/core/Database.cpp +++ b/src/core/Database.cpp @@ -304,16 +304,18 @@ bool Database::writeDatabase(QIODevice* device, QString* error) /** * Remove the old backup and replace it with a new one - * backups are named .old.kdbx + * backups are named .old. * * @param filePath Path to the file to backup * @return true on success */ bool Database::backupDatabase(const QString& filePath) { - QString backupFilePath = filePath; - auto re = QRegularExpression("\\.kdbx$|(?