[recipes] Cosmetic reordering



commit 7455dc03acfa3590f8bcff21fdd972ee1d78cbf3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 19 07:24:08 2017 -0500

    Cosmetic reordering

 src/gr-window.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index c9d1a52..e7dd11a 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -262,6 +262,11 @@ visible_page_changed (GrWindow *window)
                 g_signal_handlers_unblock_by_func (window->search_bar, search_changed, window);
                 gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), _("Recipes"));
         }
+
+        if (strcmp (visible, "edit") != 0) {
+                gr_edit_page_clear (GR_EDIT_PAGE (window->edit_page));
+        }
+
         if (strcmp (visible, "list") == 0) {
                 gr_list_page_repopulate (GR_LIST_PAGE (window->list_page));
         }
@@ -269,10 +274,6 @@ visible_page_changed (GrWindow *window)
                 gr_list_page_clear (GR_LIST_PAGE (window->list_page));
         }
 
-        if (strcmp (visible, "edit") != 0) {
-                gr_edit_page_clear (GR_EDIT_PAGE (window->edit_page));
-        }
-
         if (strcmp (visible, "recipes") == 0) {
                 gr_recipes_page_refresh (GR_RECIPES_PAGE (window->recipes_page));
                 gr_recipes_page_unexpand (GR_RECIPES_PAGE (window->recipes_page));


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