diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_count.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 3 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_show.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp index fde7c33..7e04c79 100644 --- a/sinksh/syntax_modules/sink_count.cpp +++ b/sinksh/syntax_modules/sink_count.cpp | |||
@@ -51,7 +51,7 @@ bool count(const QStringList &args, State &state) | |||
51 | 51 | ||
52 | Sink::Query query; | 52 | Sink::Query query; |
53 | for (const auto &res : resources) { | 53 | for (const auto &res : resources) { |
54 | query.resources << res.toLatin1(); | 54 | query.resourceFilter(res.toLatin1()); |
55 | } | 55 | } |
56 | query.liveQuery = false; | 56 | query.liveQuery = false; |
57 | 57 | ||
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index 2d7ef5f..e176aab 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -59,8 +59,7 @@ bool list(const QStringList &args, State &state) | |||
59 | auto filterIndex = args.indexOf("--filter"); | 59 | auto filterIndex = args.indexOf("--filter"); |
60 | if (filterIndex >= 0) { | 60 | if (filterIndex >= 0) { |
61 | for (int i = 1; i < filterIndex; i++) { | 61 | for (int i = 1; i < filterIndex; i++) { |
62 | query.resources << args.at(i).toLatin1(); | 62 | query.resourceFilter(args.at(i).toLatin1()); |
63 | query.filter(Sink::ApplicationDomain::SinkResource(args.at(i).toLatin1())); | ||
64 | } | 63 | } |
65 | for (int i = filterIndex + 1; i < args.size(); i++) { | 64 | for (int i = filterIndex + 1; i < args.size(); i++) { |
66 | auto filter = args.at(i).split("="); | 65 | auto filter = args.at(i).split("="); |
diff --git a/sinksh/syntax_modules/sink_show.cpp b/sinksh/syntax_modules/sink_show.cpp index 5197e77..45fd62c 100644 --- a/sinksh/syntax_modules/sink_show.cpp +++ b/sinksh/syntax_modules/sink_show.cpp | |||
@@ -60,7 +60,7 @@ bool show(const QStringList &args, State &state) | |||
60 | if (queryForResourceOrAgent) { | 60 | if (queryForResourceOrAgent) { |
61 | query.filter(resource.toLatin1()); | 61 | query.filter(resource.toLatin1()); |
62 | } else { | 62 | } else { |
63 | query.filter(Sink::ApplicationDomain::SinkResource(resource.toLatin1())); | 63 | query.resourceFilter(resource.toLatin1()); |
64 | } | 64 | } |
65 | query.liveQuery = false; | 65 | query.liveQuery = false; |
66 | 66 | ||
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index e3c51ff..1c7ed0f 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -41,7 +41,7 @@ bool sync(const QStringList &args, State &state) | |||
41 | { | 41 | { |
42 | Sink::Query query; | 42 | Sink::Query query; |
43 | for (const auto &res : args) { | 43 | for (const auto &res : args) { |
44 | query.resources << res.toLatin1(); | 44 | query.resourceFilter(res.toLatin1()); |
45 | } | 45 | } |
46 | 46 | ||
47 | QTimer::singleShot(0, [query, state]() { | 47 | QTimer::singleShot(0, [query, state]() { |