diff options
Diffstat (limited to 'databases/krecipes/patches/patch-krecipes_src_dialogs_ingredientsdialog.cpp')
-rw-r--r-- | databases/krecipes/patches/patch-krecipes_src_dialogs_ingredientsdialog.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/krecipes/patches/patch-krecipes_src_dialogs_ingredientsdialog.cpp b/databases/krecipes/patches/patch-krecipes_src_dialogs_ingredientsdialog.cpp new file mode 100644 index 00000000000..b30881e3d35 --- /dev/null +++ b/databases/krecipes/patches/patch-krecipes_src_dialogs_ingredientsdialog.cpp @@ -0,0 +1,20 @@ +$NetBSD: patch-krecipes_src_dialogs_ingredientsdialog.cpp,v 1.1 2012/10/26 20:19:40 joerg Exp $ + +--- krecipes/src/dialogs/ingredientsdialog.cpp.orig 2012-10-26 18:14:37.000000000 +0000 ++++ krecipes/src/dialogs/ingredientsdialog.cpp +@@ -551,12 +551,12 @@ void IngredientsDialog::reloadWeightList + QListViewItem * lastElement = weightsListView->listView() ->lastItem(); + + Weight w = *weight_it; +- WeightListItem *weight_it = new WeightListItem( weightsListView->listView(), lastElement, w ); +- weight_it->setAmountUnit( w.perAmount, ++ WeightListItem *weight_it2 = new WeightListItem( weightsListView->listView(), lastElement, w ); ++ weight_it2->setAmountUnit( w.perAmount, + database->unitName(w.perAmountUnitID), + Element((w.prepMethodID==-1)?QString::null:database->prepMethodName(w.prepMethodID),w.prepMethodID) + ); +- weight_it->setWeightUnit( w.weight, database->unitName(w.weightUnitID) ); ++ weight_it2->setWeightUnit( w.weight, database->unitName(w.weightUnitID) ); + } + } + } |