• R/O
  • SSH

qtaskwarrior: 提交

Main repository


Commit MetaInfo

修訂298969037c80dcbcd9f8f9064e949afe69ed8126 (tree)
時間2022-06-23 04:14:30
作者Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fast...>
CommiterJaime Marquínez Ferrándiz

Log Message

Fix the waiting state in newest versions of taskwarrior

Change Summary

差異

diff -r 64246bc8a1e3 -r 298969037c80 src/lib/task.cpp
--- a/src/lib/task.cpp Mon May 10 00:03:49 2021 +0200
+++ b/src/lib/task.cpp Wed Jun 22 21:14:30 2022 +0200
@@ -93,12 +93,13 @@
9393 QString _status = m_jsonObj.value("status").toString();
9494 if (_status == "completed")
9595 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;
9699 else if(_status == "pending")
97100 return StatusPending;
98101 else if(_status == "deleted")
99102 return StatusDeleted;
100- else if(_status == "waiting")
101- return StatusWaiting;
102103 else
103104 return StatusUnknown;
104105 }
Show on old repository browser