diff options
author | Harish Krishnaswamy <kharish@novell.com> | 2004-12-24 12:42:16 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2004-12-24 12:42:16 +0800 |
commit | 756599a28c39a84401d77e297766e52647e57683 (patch) | |
tree | e3380d837586704acfdac7f4dfeb6646676da6ee /calendar/gui/dialogs | |
parent | e1fec87c2d1e2faa5667105d1d6d174a006dd72b (diff) | |
download | gsoc2013-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/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |