mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01: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:
@@ -97,7 +97,7 @@ int Create::execute(const QStringList& arguments)
|
||||
db->setKey(key);
|
||||
|
||||
QString errorMessage;
|
||||
if (!db->save(databaseFilename, &errorMessage, true, false)) {
|
||||
if (!db->saveAs(databaseFilename, &errorMessage, true, false)) {
|
||||
err << QObject::tr("Failed to save the database: %1.").arg(errorMessage) << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user