aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-01-10 19:32:41 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-01-10 19:32:41 +0800
commite562721c90b84a425ffcf230e802da0a3e751599 (patch)
treedba8293e0cbcec83256a8586c139f48f7de25729 /calendar/gui/e-week-view-event-item.c
parentdd7bad07415b4b2a46d3bae6236838d52334f6fb (diff)
downloadgsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar.gz
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar.bz2
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar.lz
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar.xz
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.tar.zst
gsoc2013-evolution-e562721c90b84a425ffcf230e802da0a3e751599.zip
** Fix for bug #457842
2008-01-10 Milan Crha <mcrha@redhat.com> ** Fix for bug #457842 * gui/e-week-view-event-item.c: (e_week_view_event_item_double_click): * gui/e-week-view.c: (e_week_view_start_editing_event): Do not call edit/start editing of the event when double clicked on the same component as is actually editing. * gui/calendar-commands.c: (gcal_calendar_selection_changed_cb): Removed forgotten printf call. svn path=/trunk/; revision=34789
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index f31932b050..733ea7a3c8 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -1667,6 +1667,14 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem,
event = &g_array_index (week_view->events, EWeekViewEvent,
wveitem->event_num);
+ 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)
+ return TRUE;
+ }
+
e_week_view_stop_editing_event (week_view);
e_calendar_view_edit_appointment (E_CALENDAR_VIEW (week_view), event->comp_data->client, event->comp_data->icalcomp, FALSE);