[gnome-software/gnome-3-24] 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/gnome-3-24] Do not abort if a page does not handle the reload vfunc
- Date: Tue, 2 May 2017 07:39:18 +0000 (UTC)
commit 10b45bbfc455a42153dd6739455ba3993e6696dc
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]