|
|
|
@ -551,12 +551,12 @@ void IngredientsDialog::reloadWeightList( void )
|
|
|
|
|
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_it1 = new WeightListItem( weightsListView->listView(), lastElement, w );
|
|
|
|
|
weight_it1->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_it1->setWeightUnit( w.weight, database->unitName(w.weightUnitID) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|