diff options
author | Harish Krishnaswamy <kharish@novell.com> | 2006-01-03 00:30:41 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-01-03 00:30:41 +0800 |
commit | d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9 (patch) | |
tree | d0cb1acb69a80e9f850457667fd3f5103ec38290 /plugins/itip-formatter | |
parent | 8454343c3adcbc715cad7542853c485e68f3cc62 (diff) | |
download | gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar.gz gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar.bz2 gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar.lz gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar.xz gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.tar.zst gsoc2013-evolution-d9e4b6484b598b95bd324db24c8fdc0c0d7ec8c9.zip |
Check for static capability only if the ecal already exists. Fixes another
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.
svn path=/trunk/; revision=31029
Diffstat (limited to 'plugins/itip-formatter')
-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)) |