mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 16:59:44 -05: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 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();
|
switchToMainView();
|
||||||
|
Loading…
Reference in New Issue
Block a user