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:
AlexJoss 2019-01-21 11:28:37 -08:00 committed by Jonathan White
parent 0da9efdbd4
commit cbf92598e2

View File

@ -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();