Main repository
Revision | 298969037c80dcbcd9f8f9064e949afe69ed8126 (tree) |
---|---|
Time | 2022-06-23 04:14:30 |
Author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fast...> |
Commiter | Jaime Marquínez Ferrándiz |
Fix the waiting state in newest versions of taskwarrior
@@ -93,12 +93,13 @@ | ||
93 | 93 | QString _status = m_jsonObj.value("status").toString(); |
94 | 94 | if (_status == "completed") |
95 | 95 | return StatusCompleted; |
96 | + // TODO: the waiting state was removed in version 2.6.0, this check should be simplified in the future | |
97 | + else if(_status == "waiting" || (!this->WaitDate().isNull() && this->WaitDate() > QDateTime::currentDateTime())) | |
98 | + return StatusWaiting; | |
96 | 99 | else if(_status == "pending") |
97 | 100 | return StatusPending; |
98 | 101 | else if(_status == "deleted") |
99 | 102 | return StatusDeleted; |
100 | - else if(_status == "waiting") | |
101 | - return StatusWaiting; | |
102 | 103 | else |
103 | 104 | return StatusUnknown; |
104 | 105 | } |