[gnome-software/gnome-3-22] trivial: Do not refresh the details page if there is no current app set



commit adb6dfa1ec2b61e1e66131fc84a80f8e0d482e37
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-shell-details.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 0bab334..3abc0b6 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1181,6 +1181,10 @@ gs_shell_details_refresh_reviews (GsShellDetails *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]