aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/event-editor.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 29f3147141..67fbadee9d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-24 Harish Krishnaswamy <kharish@novell.com>
+ * gui/dialogs/event-editor.c (event_editor_edit_comp):
+ Check for the existense of the meet/sched pages before
+ attempting to remove them.
+
2004-12-23 Chenthill Palanisamy <pchenthill@novell.com>
Part of merge from offline branch
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index d804744e36..d9c558bec3 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -210,8 +210,10 @@ event_editor_edit_comp (CompEditor *editor, ECalComponent *comp)
/* Set up the attendees */
if (attendees == NULL && !priv->is_meeting) {
- comp_editor_remove_page (editor, COMP_EDITOR_PAGE (priv->meet_page));
- comp_editor_remove_page (editor, COMP_EDITOR_PAGE (priv->sched_page));
+ if (priv->meet_page)
+ comp_editor_remove_page (editor, COMP_EDITOR_PAGE (priv->meet_page));
+ if (priv->sched_page)
+ comp_editor_remove_page (editor, COMP_EDITOR_PAGE (priv->sched_page));
priv->meeting_shown = FALSE;
} else {
GSList *l;