This commit is contained in:
pls.153 2022-12-29 17:02:05 +01:00
parent 8ca3c775b6
commit 066e302ba1

View file

@ -326,10 +326,10 @@ QVariant QT::localIp() {
}
}
}
if (ips.length() == 1) {
if (!ips.isEmpty()) {
ips.sort();
return ips.first();
}
qDebug() << "multiple IPs found:\n" << ips.join("\n");
return QVariant();
}