summaryrefslogtreecommitdiffstats
path: root/akonadish/syntax_modules/akonadi_remove.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akonadish/syntax_modules/akonadi_remove.cpp')
-rw-r--r--akonadish/syntax_modules/akonadi_remove.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/akonadish/syntax_modules/akonadi_remove.cpp b/akonadish/syntax_modules/akonadi_remove.cpp
index bf09e2e..9691d78 100644
--- a/akonadish/syntax_modules/akonadi_remove.cpp
+++ b/akonadish/syntax_modules/akonadi_remove.cpp
@@ -97,13 +97,12 @@ bool resource(const QStringList &args, State &state)
97 97
98Syntax::List syntax() 98Syntax::List syntax()
99{ 99{
100 Syntax::List syntax;
101
102 Syntax remove("remove", QObject::tr("Remove items in a resource"), &AkonadiRemove::remove); 100 Syntax remove("remove", QObject::tr("Remove items in a resource"), &AkonadiRemove::remove);
103 remove.children << Syntax("resource", QObject::tr("Removes a resource"), &AkonadiRemove::resource);//, Syntax::EventDriven); 101 Syntax resource("resource", QObject::tr("Removes a resource"), &AkonadiRemove::resource);//, Syntax::EventDriven);
102 resource.completer = &AkonadishUtils::resourceCompleter;
103 remove.children << resource;
104 104
105 syntax << remove; 105 return Syntax::List() << remove;
106 return syntax;
107} 106}
108 107
109REGISTER_SYNTAX(AkonadiRemove) 108REGISTER_SYNTAX(AkonadiRemove)