Skip to content

Commit

Permalink
Add gui dialog when merge makes no changes (#2551)
Browse files Browse the repository at this point in the history
* Add gui dialog when merge makes no changes
* Add gui dialog when merge makes changes
  • Loading branch information
AlexJoss authored and droidmonkey committed Jan 21, 2019
1 parent 0da9efd commit cbf9259
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cbf9259

Please sign in to comment.