mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-06 14:07:38 +03:00
Add CLI --dry-run option for merge (#3254)
This commit is contained in:
parent
9e06dc0d5c
commit
84eec03cb7
9 changed files with 98 additions and 35 deletions
|
@ -894,9 +894,9 @@ void DatabaseWidget::mergeDatabase(bool accepted)
|
|||
}
|
||||
|
||||
Merger merger(srcDb.data(), m_db.data());
|
||||
bool databaseChanged = merger.merge();
|
||||
QStringList changeList = merger.merge();
|
||||
|
||||
if (databaseChanged) {
|
||||
if (!changeList.isEmpty()) {
|
||||
showMessage(tr("Successfully merged the database files."), MessageWidget::Information);
|
||||
} else {
|
||||
showMessage(tr("Database was not modified by merge operation."), MessageWidget::Information);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue