mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-03 23:32:33 -08:00
Cleanup database save functions
* Make a clear distinction between saving to the existing file path and saving to a new file path * Use proper save function calls in CLI
This commit is contained in:
1 parent
a876b3b72f
commit
6b746913e4
12 files changed
+33
-57
No files matched your search
+1
-1
@@ -90,7 +90,7 @@ int Import::execute(const QStringList& arguments)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (!db.save(dbPath, &errorMessage, true, false)) {
|
||||
if (!db.saveAs(dbPath, &errorMessage, true, false)) {
|
||||
errorTextStream << QObject::tr("Failed to save the database: %1.").arg(errorMessage) << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user