[gnome-software/gnome-3-22] trivial: Make gs_app_notify_failed_modal() less asserty



commit 9d071a398ce7505b44837d06c0a2aafeb6836ad2
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 8 13:33:11 2016 +0100

    trivial: Make gs_app_notify_failed_modal() less asserty

 src/gs-common.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 2bb225c..a875e48 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -183,9 +183,10 @@ gs_app_notify_failed_modal (GsApp *app,
                break;
        }
        default:
-               g_assert_not_reached ();
                break;
        }
+       if (msg->len == 0)
+               return;
        g_string_append (msg, " ");
 
        /* give details about the error */


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