1
0
Fork 0

Fix needs_sorting regression

This commit is contained in:
Malte Brandy 2018-07-20 01:13:37 +02:00
parent 5289419c78
commit 1c4b072171
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -267,7 +267,7 @@ fn enter_new_task<T: DialogProvider, S: Into<String>>(dialog: &mut T, msg: S) ->
}
pub fn needs_sorting(task: &Task) -> bool {
!task.has_tag("project") && !task.has_tag("kategorie")
!task.has_tag("kategorie") && task.partof().map(|x| x.is_none()).unwrap_or(false)
}
pub struct Kassandra {