summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_count.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-04 12:40:24 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-04 12:40:24 +0100
commitba94c4300c52dd80774ed7affc2ef9b4508cb7be (patch)
tree3c8bf6ce042a4544e81901d901a3a3759d0a128a /sinksh/syntax_modules/sink_count.cpp
parent98b682acb8c57cadaea5ff0ac6709d21a591b97b (diff)
downloadsink-ba94c4300c52dd80774ed7affc2ef9b4508cb7be.tar.gz
sink-ba94c4300c52dd80774ed7affc2ef9b4508cb7be.zip
Don't expose the live query flag directly.
Diffstat (limited to 'sinksh/syntax_modules/sink_count.cpp')
-rw-r--r--sinksh/syntax_modules/sink_count.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp
index 7e04c79..84bbabd 100644
--- a/sinksh/syntax_modules/sink_count.cpp
+++ b/sinksh/syntax_modules/sink_count.cpp
@@ -53,7 +53,6 @@ bool count(const QStringList &args, State &state)
53 for (const auto &res : resources) { 53 for (const auto &res : resources) {
54 query.resourceFilter(res.toLatin1()); 54 query.resourceFilter(res.toLatin1());
55 } 55 }
56 query.liveQuery = false;
57 56
58 auto model = SinkshUtils::loadModel(type, query); 57 auto model = SinkshUtils::loadModel(type, query);
59 QObject::connect(model.data(), &QAbstractItemModel::dataChanged, [model, state](const QModelIndex &, const QModelIndex &, const QVector<int> &roles) { 58 QObject::connect(model.data(), &QAbstractItemModel::dataChanged, [model, state](const QModelIndex &, const QModelIndex &, const QVector<int> &roles) {