From 7964475fea85055788903aaf257bfcbf16de5f10 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Fri, 22 Apr 2022 15:22:25 +0300 Subject: Bug fix: crash when editing date of a task in a group that contained only one task --- src/ui/task_details.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/task_details.rs b/src/ui/task_details.rs index e462eb4..47ea369 100755 --- a/src/ui/task_details.rs +++ b/src/ui/task_details.rs @@ -444,7 +444,11 @@ impl FurTaskDetails { imp.all_task_ids.borrow_mut().clear(); let window = FurtheranceWindow::default(); window.reset_history_box(); - self.setup_widgets(updated_list); + if updated_list.len() > 0 { + self.setup_widgets(updated_list); + } else { + self.close(); + } } fn setup_signals(&self) { -- cgit 1.4.1