aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-04-18 17:12:26 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-18 17:12:26 +0800
commit6a52b2cc19aa11400f33087280b95329f1e87ff9 (patch)
treeb00bd5397a9826b9e412fa48a9ab6c240ea3a207 /calendar/gui/dialogs/comp-editor.c
parenta4f5f85400e00efa72c5a3a6a7a2b81b7bc9d268 (diff)
downloadgsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar.gz
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar.bz2
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar.lz
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar.xz
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.tar.zst
gsoc2013-evolution-6a52b2cc19aa11400f33087280b95329f1e87ff9.zip
** Fix for bug #509923
2008-04-18 Milan Crha <mcrha@redhat.com> ** Fix for bug #509923 * gui/dialogs/comp-editor.c: (real_send_comp): * gui/e-calendar-view.c: (e_calendar_view_modify_and_send): * gui/e-cal-model-calendar.c: (ecmc_set_value_at): Send changes based on the user's choice of "all instances" or "only this instance" for recurring events. * gui/e-cal-model-calendar.c: (ecmc_set_value_at): Also modify objects based on the user's choice. svn path=/trunk/; revision=35382
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 201a321a87..0662572690 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -2609,7 +2609,7 @@ static gboolean
real_send_comp (CompEditor *editor, ECalComponentItipMethod method)
{
CompEditorPrivate *priv;
- ECalComponent *send_comp;
+ ECalComponent *send_comp = NULL;
char *address = NULL;
GList *users = NULL;
@@ -2618,7 +2618,24 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method)
priv = editor->priv;
- send_comp = e_cal_component_clone (priv->comp);
+ if (priv->mod == CALOBJ_MOD_ALL && e_cal_component_is_instance (priv->comp)) {
+ /* Ensure we send the master object, not the instance only */
+ icalcomponent *icalcomp = NULL;
+ const char *uid = NULL;
+
+ e_cal_component_get_uid (priv->comp, &uid);
+ if (e_cal_get_object (priv->client, uid, NULL, &icalcomp, NULL) && icalcomp) {
+ send_comp = e_cal_component_new ();
+ if (!e_cal_component_set_icalcomponent (send_comp, icalcomp)) {
+ icalcomponent_free (icalcomp);
+ g_object_unref (send_comp);
+ send_comp = NULL;
+ }
+ }
+ }
+
+ if (!send_comp)
+ send_comp = e_cal_component_clone (priv->comp);
if (e_cal_component_get_vtype (send_comp) == E_CAL_COMPONENT_JOURNAL)
get_users_from_memo_comp (send_comp, &users);