aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-10-01 18:54:33 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-10-01 18:54:33 +0800
commit819ed96981b41f8e1daa6ac4b4003600c5cfcf3b (patch)
tree5d63236daf0d22927f6a44b971ea7cebab994f5c /calendar/gui/e-calendar-view.c
parent6cbbd8da8005c8d81ab93c0295e8be543fa0a17c (diff)
downloadgsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar.gz
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar.bz2
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar.lz
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar.xz
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.tar.zst
gsoc2013-evolution-819ed96981b41f8e1daa6ac4b4003600c5cfcf3b.zip
fixes #301391
svn path=/trunk/; revision=30458
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 9292e27636..cfc9d755a2 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -812,10 +812,17 @@ clipboard_get_text_cb (GtkClipboard *clipboard, const gchar *text, ECalendarView
subcomp = icalcomponent_get_first_component (icalcomp, ICAL_ANY_COMPONENT);
while (subcomp) {
child_kind = icalcomponent_isa (subcomp);
- if (child_kind == ICAL_VEVENT_COMPONENT)
+ if (child_kind == ICAL_VEVENT_COMPONENT) {
+
+ if (e_cal_util_component_has_recurrences (subcomp)) {
+ icalproperty *icalprop = icalcomponent_get_first_property (subcomp, ICAL_RRULE_PROPERTY);
+ if (icalprop)
+ icalproperty_remove_parameter_by_name (icalprop, "X-EVOLUTION-ENDDATE");
+ }
+
e_calendar_view_add_event (cal_view, client, selected_time_start,
default_zone, subcomp, in_top_canvas);
- else if (child_kind == ICAL_VTIMEZONE_COMPONENT) {
+ } else if (child_kind == ICAL_VTIMEZONE_COMPONENT) {
icaltimezone *zone;
zone = icaltimezone_new ();