diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-28 22:51:43 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-28 22:51:43 +0100 |
commit | 1998b8d35478205118cea5cc215c682b235434f1 (patch) | |
tree | 7a0f04f8b52843d9cbdb622d476a90604c48ff7a /akonadish/syntax_modules/akonadi_remove.cpp | |
parent | ac0e1de3a3895b0e62231364499a2c3327fd74f0 (diff) | |
parent | cc5363fe4b0cd4ea95ac98d9d37f2028fe226145 (diff) | |
download | sink-1998b8d35478205118cea5cc215c682b235434f1.tar.gz sink-1998b8d35478205118cea5cc215c682b235434f1.zip |
Merge branch 'develop' of git://anongit.kde.org/akonadi-next into develop
Diffstat (limited to 'akonadish/syntax_modules/akonadi_remove.cpp')
-rw-r--r-- | akonadish/syntax_modules/akonadi_remove.cpp | 9 |
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 | ||
98 | Syntax::List syntax() | 98 | Syntax::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 | ||
109 | REGISTER_SYNTAX(AkonadiRemove) | 108 | REGISTER_SYNTAX(AkonadiRemove) |