SVN commit 420401 by jkivlighn: -Display the correct header text when inputting a recipe (It was showing the ingredient text, even though the correct header text was actually being saved) -Allow hitting enter to input a header M +2 -1 recipeinputdialog.cpp --- trunk/extragear/utils/krecipes/src/dialogs/recipeinputdialog.cpp #420400:420401 @@ -628,6 +628,7 @@ connect( unitBox->lineEdit(), SIGNAL( returnPressed() ), this, SLOT( addIngredient() ) ); connect( ingredientBox->lineEdit(), SIGNAL( returnPressed() ), this, SLOT( addIngredient() ) ); + connect( headerBox->lineEdit(), SIGNAL( returnPressed() ), this, SLOT( addIngredient() ) ); connect( prepMethodBox->lineEdit(), SIGNAL( returnPressed() ), this, SLOT( addIngredient() ) ); connect( amountEdit, SIGNAL( returnPressed( const QString & ) ), this, SLOT( addIngredient() ) ); @@ -1135,7 +1136,7 @@ if ( last_item && last_item->parent() ) last_item = last_item->parent(); - IngGrpListViewItem *ing_header = new IngGrpListViewItem( ingredientList, last_item, ingredientBox->currentText(), group_id ); + IngGrpListViewItem *ing_header = new IngGrpListViewItem( ingredientList, last_item, headerBox->currentText(), group_id ); ing_header->setOpen( true ); typeButtonGrp->setButton( 0 ); //put back to ingredient input