From db324c41e3b5fa04862f5134070feccdc524c6b3 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 7 Aug 2021 23:36:35 -0400 Subject: [PATCH] TF2: Upgrade waiting tasks to pending, if applicable This can be safely removed in one of the later releases (likely 3.1 or later). --- src/TDB2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 9b1cf7443..a5f8646ba 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -355,6 +355,14 @@ void TF2::load_gc (Task& task) { Context::getContext ().tdb2.pending._tasks.push_back (task); } + // 2.6.0: Waiting status is deprecated. Convert to pending to upgrade status + // field value in the data files. + else if (status == "waiting") + { + task.set ("status", "pending"); + Context::getContext ().tdb2.pending._tasks.push_back (task); + Context::getContext ().tdb2.pending._dirty = true; + } else { Context::getContext ().tdb2.completed._tasks.push_back (task);