diff options
-rw-r--r-- | src/planner-eds.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp index 61719ea..c4d2932 100644 --- a/src/planner-eds.cpp +++ b/src/planner-eds.cpp @@ -467,14 +467,15 @@ private: e_cal_component_free_recur_list(recur_list); ECalComponentText text; - text.value = ""; + text.value = nullptr; e_cal_component_get_summary(component, &text); + if (text.value) + appointment.summary = text.value; appointment.begin = DateTime(begin); appointment.end = DateTime(end); appointment.color = subtask->color; appointment.is_event = vtype == E_CAL_COMPONENT_EVENT; - appointment.summary = text.value; appointment.uid = uid; GList * alarm_uids = e_cal_component_get_alarm_uids(component); |