diff options
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/e-cal-model.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ce0a44b20e..5908cd9249 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-03-12 Not Zed <NotZed@Ximian.com> + + * gui/e-cal-model.c (ecm_initialize_value): return "" instead of + NULL if there is no default_category set. Fixes #53419. + 2004-03-09 Kidd Wang <kidd.wang@sun.com> * gui/e-day-view.c: (e_day_view_finish_long_event_resize): add a call diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 750e435767..246444986f 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -762,7 +762,7 @@ ecm_initialize_value (ETableModel *etm, int col) switch (col) { case E_CAL_MODEL_FIELD_CATEGORIES : - return g_strdup (priv->default_category); + return g_strdup (priv->default_category?priv->default_category:""); case E_CAL_MODEL_FIELD_CLASSIFICATION : case E_CAL_MODEL_FIELD_DESCRIPTION : case E_CAL_MODEL_FIELD_SUMMARY : |