[evolution] Task Location shown as Summary in preview pane



commit 86dec528a3f8b5e86f8cccdf100efe900ffb226b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 1 18:19:43 2018 +0200

    Task Location shown as Summary in preview pane
    
    When a task had filled Location, the preview panel showed:
       Summary: summary
    instead of:
       Location: location
    It also caused the Summary being shown twice in the preview pane.

 src/calendar/gui/e-cal-component-preview.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/gui/e-cal-component-preview.c b/src/calendar/gui/e-cal-component-preview.c
index bb47e36fa0..af8e01758a 100644
--- a/src/calendar/gui/e-cal-component-preview.c
+++ b/src/calendar/gui/e-cal-component-preview.c
@@ -252,10 +252,10 @@ cal_component_preview_write_html (ECalComponentPreview *preview,
 
        /* write location */
        e_cal_component_get_location (comp, &location);
-       if (location)
+       if (location && *location)
                g_string_append_printf (
                        buffer, "<tr><th>%s</th><td>%s</td></tr>",
-                       _("Summary:"), text.value);
+                       _("Location:"), location);
 
        /* write start date */
        e_cal_component_get_dtstart (comp, &dt);


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