TW-1279: default.* applies to recurring tasks

- Recurring tasks inherit attributes from their parent.  default.*
  is no longer applied to them.
This commit is contained in:
Wilhelm Schuermann 2015-04-02 10:24:21 +02:00
parent 2eea7805c6
commit c1815b8277
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
2.4.3 () -
- TW-1279 Make default.* not apply to recurring tasks.
- TW-1578 Bash tab completion problems on first run
(thanks to Renato Alves and Ptolemarch).
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).

View file

@ -1384,7 +1384,7 @@ void Task::validate (bool applyDefault /* = true */)
if (!has ("modified") || get ("modified") == "")
setAsNow ("modified");
if (applyDefault)
if (applyDefault && (! has ("parent") || get ("parent") == ""))
{
// Override with default.project, if not specified.
if (Task::defaultProject != "" &&