[gnome-software] Only overwrite descriptions if better than the original
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Only overwrite descriptions if better than the original
- Date: Thu, 12 Mar 2015 11:45:24 +0000 (UTC)
commit 9df22fc3764afc986995950436b05017dd9dd19c
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 12 11:37:42 2015 +0000
Only overwrite descriptions if better than the original
src/gs-app.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 5295e0d..30f739e 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -620,7 +620,7 @@ gs_app_set_name (GsApp *app, GsAppQuality quality, const gchar *name)
g_return_if_fail (GS_IS_APP (app));
/* only save this if the data is sufficiently high quality */
- if (quality < app->priv->name_quality)
+ if (quality <= app->priv->name_quality)
return;
app->priv->name_quality = quality;
@@ -1149,7 +1149,7 @@ gs_app_set_summary (GsApp *app, GsAppQuality quality, const gchar *summary)
g_return_if_fail (GS_IS_APP (app));
/* only save this if the data is sufficiently high quality */
- if (quality < app->priv->summary_quality)
+ if (quality <= app->priv->summary_quality)
return;
app->priv->summary_quality = quality;
@@ -1179,7 +1179,7 @@ gs_app_set_description (GsApp *app, GsAppQuality quality, const gchar *descripti
g_return_if_fail (GS_IS_APP (app));
/* only save this if the data is sufficiently high quality */
- if (quality < app->priv->description_quality)
+ if (quality <= app->priv->description_quality)
return;
app->priv->description_quality = quality;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]