[gnome-software] trivial: Do not refresh the details page if there is no current app set
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not refresh the details page if there is no current app set
- Date: Tue, 7 Mar 2017 19:03:11 +0000 (UTC)
commit 7e83720d8514978b95eb890f52389a0b843f790f
Author: Richard Hughes <richard hughsie com>
Date: Tue Mar 7 19:02:41 2017 +0000
trivial: Do not refresh the details page if there is no current app set
This is triggered when the network connection type changes.
src/gs-details-page.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index b599b1e..88de446 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1192,6 +1192,10 @@ gs_details_page_refresh_reviews (GsDetailsPage *self)
{ GS_PLUGIN_ACTION_LAST, NULL }
};
+ /* nothing to show */
+ if (self->app == NULL)
+ return;
+
/* show or hide the entire reviews section */
switch (gs_app_get_kind (self->app)) {
case AS_APP_KIND_DESKTOP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]