about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ui/task_details.rs6
1 files changed, 5 insertions, 1 deletions
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) {