[gnome-software] trivial: Allow overwriting the error if a state change has not taken place
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow overwriting the error if a state change has not taken place
- Date: Fri, 22 Apr 2016 17:18:07 +0000 (UTC)
commit 4eec56a21a0bc472d42f0a437e4c913eef87f81a
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 7115a85..30a0dba 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -730,8 +730,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]