Skip to content

Commit

Permalink
Avoid calling a private property in parent
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Aug 14, 2024
1 parent efad798 commit 4e6314e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def is_recurring(self) -> bool:
@GObject.Property(type=bool, default=False)
def has_date_due(self) -> bool:
if not self._has_date_due and self.parent:
return self.parent._has_date_due
return self.parent.has_date_due
else:
return self._has_date_due

Expand Down

0 comments on commit 4e6314e

Please sign in to comment.