Skip to content

Commit

Permalink
Merge pull request #474 from minorsecond/bugfix/dupe-drink-names-regr…
Browse files Browse the repository at this point in the history
…ession

Fix regression in setting drink name when dupes exist
  • Loading branch information
minorsecond authored Oct 9, 2022
2 parents 3f84197 + f55eeb6 commit 1026f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void MainWindow::rename_duplicate_drink_names(std::vector<Drink> &drinks) {
for (Drink &drink : drinks) {
if (drink.get_name() == elem.first) {
if (!drink.get_producer().empty()) {
drink.get_name() += " -- (" + drink.get_producer() + ")";
drink.set_name(drink.get_name() += " -- (" + drink.get_producer() + ")");
}
}
}
Expand Down

0 comments on commit 1026f94

Please sign in to comment.