aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-12 17:23:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-12 17:23:40 +0800
commit956377822c6b7eebe36889950c6f7a749e78a8d0 (patch)
tree09e27e4a2f324ec58fe6266cd996b474cda0ef61
parent3ea7be06f053a56e14b9ca29005b6f76fa870ea4 (diff)
downloadgsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.gz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.bz2
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.lz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.xz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.zst
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.zip
return "" instead of NULL if there is no default_category set. Fixes
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. svn path=/trunk/; revision=25042
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-cal-model.c2
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 :