aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-week-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index fc1164df7f..7affe611b6 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2980,9 +2980,12 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
&event_num, &span_num))
return FALSE;
- if (gdkevent->button.button == 3 && !E_TEXT (item)->editing) {
+ if (gdkevent->button.button == 3) {
EWeekViewEvent *e;
+ if (E_TEXT (item)->editing)
+ e_week_view_stop_editing_event (week_view);
+
e = &g_array_index (week_view->events, EWeekViewEvent, event_num);
if (!GTK_WIDGET_HAS_FOCUS (week_view))