mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-17 14:00:36 -04:00
Fix db history when adding new db (#9022)
Fixes https://github.com/keepassxreboot/keepassxc/issues/8375
This commit is contained in:
parent
93831f64a3
commit
8846880015
5 changed files with 44 additions and 1 deletions
|
@ -275,8 +275,8 @@ bool Database::saveAs(const QString& filePath, SaveAction action, const QString&
|
|||
bool isNewFile = !QFile::exists(realFilePath);
|
||||
bool ok = AsyncTask::runAndWaitForFuture([&] { return performSave(realFilePath, action, backupFilePath, error); });
|
||||
if (ok) {
|
||||
markAsClean();
|
||||
setFilePath(filePath);
|
||||
markAsClean();
|
||||
if (isNewFile) {
|
||||
QFile::setPermissions(realFilePath, QFile::ReadUser | QFile::WriteUser);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue