mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Add gui dialog when merge makes no changes (#2551)
* Add gui dialog when merge makes no changes * Add gui dialog when merge makes changes
This commit is contained in:
parent
0da9efdbd4
commit
cbf92598e2
@ -863,7 +863,13 @@ void DatabaseWidget::mergeDatabase(bool accepted)
|
||||
}
|
||||
|
||||
Merger merger(srcDb.data(), m_db.data());
|
||||
merger.merge();
|
||||
bool databaseChanged = merger.merge();
|
||||
|
||||
if (databaseChanged) {
|
||||
showMessage(tr("Successfully merged the database files."), MessageWidget::Information);
|
||||
} else {
|
||||
showMessage(tr("Database was not modified by merge operation."), MessageWidget::Information);
|
||||
}
|
||||
}
|
||||
|
||||
switchToMainView();
|
||||
|
Loading…
Reference in New Issue
Block a user