diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-26 19:24:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-26 19:24:37 +0100 |
commit | 50ac3277be22bb408e84baab5b60e0eb0c6db7f3 (patch) | |
tree | 74f524bee73e837a9af54cfc9da6ed2dd8dbcd57 | |
parent | 8ef8b8dee60aa0a81fbb2cbba30c00d3b15bb771 (diff) | |
download | sink-50ac3277be22bb408e84baab5b60e0eb0c6db7f3.tar.gz sink-50ac3277be22bb408e84baab5b60e0eb0c6db7f3.zip |
Don't get stuck on an already finished command.
-rw-r--r-- | akonadish/syntax_modules/akonadi_count.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/akonadish/syntax_modules/akonadi_count.cpp b/akonadish/syntax_modules/akonadi_count.cpp index 70aabc9..cda7235 100644 --- a/akonadish/syntax_modules/akonadi_count.cpp +++ b/akonadish/syntax_modules/akonadi_count.cpp | |||
@@ -65,6 +65,10 @@ bool count(const QStringList &args, State &state) | |||
65 | } | 65 | } |
66 | }); | 66 | }); |
67 | 67 | ||
68 | if (!model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool()) { | ||
69 | return true; | ||
70 | } | ||
71 | |||
68 | return true; | 72 | return true; |
69 | } | 73 | } |
70 | 74 | ||