[gnome-software] Do not abort if a page does not handle the reload vfunc
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not abort if a page does not handle the reload vfunc
- Date: Thu, 13 Apr 2017 16:43:35 +0000 (UTC)
commit e813ae525a536eb2f6765c8cfb975eb6ba10bdfe
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 6614eb4..818adf6 100644
--- a/src/gs-page.c
+++ b/src/gs-page.c
@@ -646,8 +646,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);
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]