diff options
-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 | ||