- Fixed bug whereby the start, stop and delete commands were not
  complaining when filter arguments were specified, even though they
  were ignored.  Thanks to Charles T. Yun.
This commit is contained in:
Paul Beckingham
2009-08-16 18:39:35 -04:00
parent 1b28d8714b
commit ec7f7cc939
5 changed files with 86 additions and 0 deletions

View File

@@ -387,6 +387,8 @@ std::string handleCompletionIDs ()
////////////////////////////////////////////////////////////////////////////////
void handleUndo ()
{
context.disallowModification ();
context.tdb.lock (context.config.get ("locking", true));
context.tdb.undo ();
context.tdb.unlock ();
@@ -557,6 +559,8 @@ std::string handleDelete ()
{
std::stringstream out;
context.disallowModification ();
std::vector <Task> tasks;
context.tdb.lock (context.config.get ("locking", true));
Filter filter;
@@ -656,6 +660,8 @@ std::string handleStart ()
{
std::stringstream out;
context.disallowModification ();
std::vector <Task> tasks;
context.tdb.lock (context.config.get ("locking", true));
Filter filter;
@@ -707,6 +713,8 @@ std::string handleStop ()
{
std::stringstream out;
context.disallowModification ();
std::vector <Task> tasks;
context.tdb.lock (context.config.get ("locking", true));
Filter filter;