[gnome-software/gnome-3-22] Do not abort if a page does not handle the reload vfunc



commit 1cae78ac9ebc9b13873da0573ecf3237623a4fea
Author: Richard Hughes <richard hughsie com>
Date:   Thu Apr 13 17:43:13 2017 +0100

    Do not abort if a page does not handle the reload vfunc

 src/gs-page.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-page.c b/src/gs-page.c
index 54af8e4..72ad63f 100644
--- a/src/gs-page.c
+++ b/src/gs-page.c
@@ -655,8 +655,8 @@ gs_page_reload (GsPage *page)
        GsPageClass *klass;
        g_return_if_fail (GS_IS_PAGE (page));
        klass = GS_PAGE_GET_CLASS (page);
-       g_assert (klass->reload != NULL);
-       klass->reload (page);
+       if (klass->reload != NULL)
+               klass->reload (page);
 }
 
 void


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