aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-06-09 18:09:05 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-06-09 18:09:05 +0800
commit7d4f83689a512f3af1a4002a1567ffbb2762ebb9 (patch)
treefb560b80ac5a1e7a262c5170a5fd13925aa30531 /calendar/gui/e-week-view-event-item.c
parent5c0a74daec3233ea307f25e23c83ba0db83f1b47 (diff)
downloadgsoc2013-evolution-7d4f83689a512f3af1a4002a1567ffbb2762ebb9.tar.gz
gsoc2013-evolution-7d4f83689a512f3af1a4002a1567ffbb2762ebb9.tar.zst
gsoc2013-evolution-7d4f83689a512f3af1a4002a1567ffbb2762ebb9.zip
** Fix for bug #536813
2008-06-09 Milan Crha <mcrha@redhat.com> ** Fix for bug #536813 * gui/comp-util.h: (is_icalcomp_on_the_server): * gui/comp-util.c: (is_icalcomp_on_the_server): Similar helper function as cal_comp_is_on_server only the parameter is icalcomponent. * gui/e-week-view-event-item.c: (e_week_view_event_item_double_click): * gui/e-week-view.c: (e_week_view_on_text_item_event): Do not start to edit the event on the double click if the event is not on the server yet. Storing the event can cause the renumbering events so the result can be that the edited event would be different. svn path=/trunk/; revision=35618
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 0efeef27ee..e5e079c04d 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -1079,7 +1079,6 @@ e_week_view_event_item_button_release (EWeekViewEventItem *wveitem,
return FALSE;
}
-
static gboolean
e_week_view_event_item_double_click (EWeekViewEventItem *wveitem,
GdkEvent *bevent)
@@ -1099,8 +1098,8 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem,
if (week_view->editing_event_num >= 0) {
EWeekViewEvent *editing = &g_array_index (week_view->events, EWeekViewEvent, week_view->editing_event_num);
- /* do not call edit of the component, if double clicked on the same component - the event is spread into more days */
- if (editing && event && editing->comp_data == event->comp_data)
+ /* do not call edit of the component, if double clicked on the component, which is not on the server */
+ if (editing && event && editing->comp_data == event->comp_data && (!event->comp_data || !is_icalcomp_on_the_server (event->comp_data->icalcomp, event->comp_data->client)))
return TRUE;
}