diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:07:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:07:03 +0100 |
commit | 74d357f533b49b0d1eeb72606303cfd8a16fb20e (patch) | |
tree | 3cb8360639fe2880d0458532e45abf1e04513a3c /sinksh/syntax_modules/sink_stat.cpp | |
parent | ba0ba8f7a84995837eb818591fe0b15bd328fef5 (diff) | |
download | sink-74d357f533b49b0d1eeb72606303cfd8a16fb20e.tar.gz sink-74d357f533b49b0d1eeb72606303cfd8a16fb20e.zip |
Parse uids
Diffstat (limited to 'sinksh/syntax_modules/sink_stat.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_stat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_stat.cpp b/sinksh/syntax_modules/sink_stat.cpp index 926c744..f263bbc 100644 --- a/sinksh/syntax_modules/sink_stat.cpp +++ b/sinksh/syntax_modules/sink_stat.cpp | |||
@@ -77,7 +77,7 @@ bool statAllResources(State &state) | |||
77 | { | 77 | { |
78 | Sink::Query query; | 78 | Sink::Query query; |
79 | for (const auto &r : SinkshUtils::getStore("resource").read(query)) { | 79 | for (const auto &r : SinkshUtils::getStore("resource").read(query)) { |
80 | statResource(r.identifier(), state); | 80 | statResource(SinkshUtils::parseUid(r.identifier()), state); |
81 | } | 81 | } |
82 | return false; | 82 | return false; |
83 | } | 83 | } |
@@ -89,7 +89,7 @@ bool stat(const QStringList &args, State &state) | |||
89 | } | 89 | } |
90 | 90 | ||
91 | for (const auto &r : args) { | 91 | for (const auto &r : args) { |
92 | statResource(r, state); | 92 | statResource(SinkshUtils::parseUid(r.toUtf8()), state); |
93 | } | 93 | } |
94 | return false; | 94 | return false; |
95 | } | 95 | } |