[gnome-software/gnome-3-20] trivial: Allow overwriting the error if a state change has not taken place



commit 3cdf19e7b35094efb1d11651cb57c6f50a1b095d
Author: Richard Hughes <richard hughsie com>
Date:   Fri Apr 22 13:11:29 2016 +0100

    trivial: Allow overwriting the error if a state change has not taken place

 src/gs-plugin-loader.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 73e7b07..c882668 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -550,8 +550,7 @@ gs_plugin_loader_set_app_error (GsApp *app, GError *error)
                return;
 
        /* random, non-plugin error domains are never shown to the user */
-       if (error->domain == GS_PLUGIN_ERROR &&
-           gs_app_get_last_error (app) == NULL) {
+       if (error->domain == GS_PLUGIN_ERROR) {
                g_debug ("saving error for %s: %s",
                         gs_app_get_id (app),
                         error->message);


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