diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp index 024d661aa..6bf89c05b 100644 --- a/cli/kdeconnect-cli.cpp +++ b/cli/kdeconnect-cli.cpp @@ -81,14 +81,14 @@ int main(int argc, char** argv) if (parser.isSet(QStringLiteral("my-id"))) { QTextStream(stdout) << iface.selfId() << endl; } else if (parser.isSet(QStringLiteral("l")) || parser.isSet(QStringLiteral("a"))) { - bool reachable = false; + bool available = false; if (parser.isSet(QStringLiteral("a"))) { - reachable = true; + available = true; } else { blockOnReply(iface.acquireDiscoveryMode(id)); QThread::sleep(2); } - const QStringList devices = blockOnReply(iface.devices(reachable, false)); + const QStringList devices = blockOnReply(iface.devices(available, available)); bool displayCount = true; for (const QString& id : devices) {