[gnome-software/gnome-3-10] Do not show empty 'blank' update descriptions
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Do not show empty 'blank' update descriptions
- Date: Mon, 25 Nov 2013 16:16:45 +0000 (UTC)
commit 2d2626ca32d7eda59e32e2f54d5cd94205bf95a2
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 25 15:27:32 2013 +0000
Do not show empty 'blank' update descriptions
src/gs-app-widget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index c782d25..e7deddc 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -70,11 +70,11 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
if (priv->show_update &&
gs_app_get_state (priv->app) == GS_APP_STATE_UPDATABLE)
tmp = gs_app_get_update_details (priv->app);
- if (tmp == NULL)
+ if (tmp == NULL || (tmp != NULL && tmp[0] == '\0'))
tmp = gs_app_get_description (priv->app);
- if (tmp == NULL)
+ if (tmp == NULL || (tmp != NULL && tmp[0] == '\0'))
tmp = gs_app_get_summary (priv->app);
- if (tmp == NULL)
+ if (tmp == NULL || (tmp != NULL && tmp[0] == '\0'))
tmp = gs_app_get_name (priv->app);
/* join the lines*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]