Enhancement

- Importing the same YAML twice now generates an error.
This commit is contained in:
Paul Beckingham
2010-09-02 21:32:33 -04:00
parent b32d731010
commit 1cc67e9895
6 changed files with 42 additions and 8 deletions

View File

@@ -1169,6 +1169,11 @@ static std::string importYAML (const std::vector <std::string>& lines)
context.tdb.lock (context.config.getBoolean ("locking"));
// Load all the tasks so that the uuid uniqueness can be checked.
std::vector <Task> tasks;
Filter filter;
context.tdb.load (tasks, filter);
Task t;
std::string name;