diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2005-02-04 19:22:52 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-02-04 19:22:52 +0800 |
commit | 958515a10ad2c5fd363381fed9a317c29433a04d (patch) | |
tree | 7ba8a047dc1a70a01824da38fac4b087b14e00d5 /calendar/gui/e-day-view.c | |
parent | ccecf5ce111a42dadfb0bf9a90aa2756d2361fc1 (diff) | |
download | gsoc2013-evolution-958515a10ad2c5fd363381fed9a317c29433a04d.tar.gz gsoc2013-evolution-958515a10ad2c5fd363381fed9a317c29433a04d.tar.zst gsoc2013-evolution-958515a10ad2c5fd363381fed9a317c29433a04d.zip |
Fixes #71265
2005-02-04 Rodrigo Moya <rodrigo@novell.com>
Fixes #71265
* gui/e-week-view.c (e_week_view_remove_event_cb):
* gui/e-day-view.c (e_day_view_remove_event_cb): if we remove the
event we were editing, update internal pointers.
svn path=/trunk/; revision=28707
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 485a930f89..73b57432cf 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1722,9 +1722,15 @@ e_day_view_remove_event_cb (EDayView *day_view, /* If we were editing this event, set editing_event_day to -1 so on_editing_stopped doesn't try to update the event. */ - if (day_view->editing_event_day == day - && day_view->editing_event_num == event_num) + if (day_view->editing_event_num == event_num && day_view->editing_event_day == day) { + day_view->editing_event_num = -1; day_view->editing_event_day = -1; + } + + if (day_view->popup_event_num == event_num && day_view->popup_event_day == day) { + day_view->popup_event_num = -1; + day_view->popup_event_day = -1; + } if (event->canvas_item) gtk_object_destroy (GTK_OBJECT (event->canvas_item)); |