week-header: Move events at column after remove event from list
The Problem: When user remove 4rt fullday event, header only shows two events and not shows 3rd fullday event Because, we check and set visibility of event that user wants to remove from calendar, before remove event from event list which causes 3rd event unvisible. Fix that with check and set visibility of event after remove event from event list, then visibilties and overflow corretly calculated https://bugzilla.gnome.org/show_bug.cgi?id=777423
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
d21397a4e9
commit
a6e347d8f2
@@ -1666,13 +1666,13 @@ gcal_week_header_remove_event (GcalWeekHeader *self,
|
||||
if (event_position == -1)
|
||||
continue;
|
||||
|
||||
/* Move remaining events up */
|
||||
move_events_at_column (self, UP, weekday, event_position);
|
||||
|
||||
/* Remove from the current weekday */
|
||||
l = g_list_remove (l, removed_event);
|
||||
self->events[weekday] = l;
|
||||
|
||||
/* Move remaining events up */
|
||||
move_events_at_column (self, UP, weekday, event_position);
|
||||
|
||||
}
|
||||
|
||||
/* Check if we eventually can merge events */
|
||||
|
||||
Reference in New Issue
Block a user