aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2004-12-24 12:42:16 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2004-12-24 12:42:16 +0800
commit756599a28c39a84401d77e297766e52647e57683 (patch)
treee3380d837586704acfdac7f4dfeb6646676da6ee /calendar
parente1fec87c2d1e2faa5667105d1d6d174a006dd72b (diff)
downloadgsoc2013-evolution-756599a28c39a84401d77e297766e52647e57683.tar.gz
gsoc2013-evolution-756599a28c39a84401d77e297766e52647e57683.tar.zst
gsoc2013-evolution-756599a28c39a84401d77e297766e52647e57683.zip
Check for the existence of the meet/sched pages before attempting to
2004-12-24 Harish Krishnaswamy <kharish@novell.com> * gui/dialogs/event-editor.c (event_editor_edit_comp): Check for the existence of the meet/sched pages before attempting to remove them. svn path=/trunk/; revision=28196
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;