Fix kdeconnect-cli device list

Summary:
Previously, the .devices() call passed the parameters in the wrong order. I checked the order in the interface and the daemon, and this was the only place it went wrong.

Now running `kdeconnect-cli -l` correctly lists all paired devices, even if unreachable.

Test Plan: Tested with both a reachable and unreachable device.

Reviewers: #kde_connect, apol

Reviewed By: #kde_connect, apol

Subscribers: apol

Differential Revision: https://phabricator.kde.org/D9060
This commit is contained in:
Matthijs Tijink 2017-12-03 19:28:25 +01:00 committed by Nicolas Fella
parent 227e264042
commit 6a6b97e7c9

View file

@ -88,7 +88,7 @@ int main(int argc, char** argv)
blockOnReply(iface.acquireDiscoveryMode(id));
QThread::sleep(2);
}
const QStringList devices = blockOnReply<QStringList>(iface.devices(paired, reachable));
const QStringList devices = blockOnReply<QStringList>(iface.devices(reachable, paired));
for (const QString& id : devices) {
if (parser.isSet(QStringLiteral("id-only"))) {