diff options
-rw-r--r-- | plugins/itip-formatter/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index 23db0c0d3e..7f208fc608 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,10 @@ +2006-01-02 Harish Krishnaswamy <kharish@novell.com> + + * itip-formatter.c: (source_selected_cb): + Check for static capability only if the ecal + already exists. Fixes another critical warning + crasher. + 2005-12-30 Andre Klapper <a9016009@gmx.de> * itip-formatter.c: added a missing word. Fixes bug 325128. diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 04770cb2ee..734880e44b 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -351,7 +351,7 @@ source_selected_cb (ItipView *view, ESource *source, gpointer data) /* If it is a GW recurrence instance, enable the 'Apply to all * instances' option */ - if (e_cal_get_static_capability (pitip->current_ecal, CAL_STATIC_CAPABILITY_RECURRENCES_NO_MASTER)) { + if (pitip->current_ecal && e_cal_get_static_capability (pitip->current_ecal, CAL_STATIC_CAPABILITY_RECURRENCES_NO_MASTER)) { icalcomponent *icalcomp = e_cal_component_get_icalcomponent (pitip->comp); if (check_is_instance (icalcomp)) |