[recipes] Save rows when saving the edit page



commit a1eb22a30d90c6b22d4041eecc039842462834b6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 14 23:16:46 2017 -0400

    Save rows when saving the edit page
    
    We were not getting the content of an ingredients
    entry when the recipe is saved. Do this by unsetting
    the active row before collecting the ingredients.

 src/gr-ingredients-viewer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-ingredients-viewer.c b/src/gr-ingredients-viewer.c
index 54efd1f..1486599 100644
--- a/src/gr-ingredients-viewer.c
+++ b/src/gr-ingredients-viewer.c
@@ -130,6 +130,8 @@ collect_ingredients (GrIngredientsViewer *viewer)
         GString *s;
         GList *children, *l;
 
+        set_active_row (viewer, NULL);
+
         s = g_string_new ("");
 
         children = gtk_container_get_children (GTK_CONTAINER (viewer->list));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]