From 35cc74578e969bae4812afd2ff041eba3746142d Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 19 Mar 2022 22:03:58 +0100 Subject: Allow to repeat an event until a specific date Also provide a shortcut to modify a repetead event from a specific occurence. This set the end repetition date under the hood and create a new repeated event. --- src/gui/calendar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/calendar.rs') diff --git a/src/gui/calendar.rs b/src/gui/calendar.rs index cad2465..547c087 100644 --- a/src/gui/calendar.rs +++ b/src/gui/calendar.rs @@ -181,9 +181,9 @@ fn day_events(date: NaiveDate, tx: Sender, events: Vec<&Event>) -> gtk::Box gesture.set_state(gtk::EventSequenceState::Claimed); if n == 2 { if event.repetition.is_some() { - update::send(tx.clone(), Msg::ShowRepetitionDialog { date, event: event.clone() }); + update::send(tx.clone(), Msg::ShowRepetitionDialog { date, event_id: event.id }); } else { - update::send(tx.clone(), Msg::ShowUpdateForm { event: event.clone() }); + update::send(tx.clone(), Msg::ShowUpdateForm { event_id: event.id }); } } }), -- cgit v1.2.3