diff --git a/gui/newrecipedialog.cpp b/gui/newrecipedialog.cpp
index 1d9a6c5..4937851 100644
--- a/gui/newrecipedialog.cpp
+++ b/gui/newrecipedialog.cpp
@@ -149,3 +149,7 @@ void NewRecipeDialog::on_removeTagButton_clicked(){
this->populateTagsBox();
}
}
+
+void NewRecipeDialog::on_ingredientLineEdit_returnPressed(){
+ this->on_addIngredientButton_clicked();
+}
diff --git a/gui/newrecipedialog.h b/gui/newrecipedialog.h
index 99d7af8..0c3e986 100644
--- a/gui/newrecipedialog.h
+++ b/gui/newrecipedialog.h
@@ -55,6 +55,8 @@ class NewRecipeDialog : public QDialog
void on_removeTagButton_clicked();
+ void on_ingredientLineEdit_returnPressed();
+
private:
Ui::NewRecipeDialog *ui;
RecipeDatabase *recipeDB;
diff --git a/gui/newrecipedialog.ui b/gui/newrecipedialog.ui
index d59410c..068f8af 100644
--- a/gui/newrecipedialog.ui
+++ b/gui/newrecipedialog.ui
@@ -640,11 +640,14 @@ QPushButton#removeIngredientButton:pressed{
QFrame::NoFrame
- QAbstractItemView::MultiSelection
+ QAbstractItemView::SingleSelection
QAbstractItemView::ScrollPerPixel
+
+ QAbstractItemView::ScrollPerPixel
+
100