[gnome-software] Fix assert when trying to show details of an upgradable package, harder



commit e43726c29fd0e58bb7c2bf1d3fe7c0df2b806618
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 6 13:42:18 2013 +0100

    Fix assert when trying to show details of an upgradable package, harder

 src/gs-shell-details.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 0d4c469..80d4b0a 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -140,6 +140,7 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                 switch (state) {
                 case GS_APP_STATE_INSTALLED:
                 case GS_APP_STATE_AVAILABLE:
+               case GS_APP_STATE_UPDATABLE:
                         gtk_widget_set_visible (widget, FALSE);
                         gtk_spinner_stop (GTK_SPINNER (widget));
                         break;
@@ -149,6 +150,8 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                         gtk_widget_set_visible (widget, TRUE);
                         break;
                default:
+                       g_warning ("App unexpectedly in state %s",
+                                  gs_app_state_to_string (state));
                        g_assert_not_reached ();
                 }
         }


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