mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-07 02:51:09 -08:00
revision
This commit is contained in:
parent
8ca3c775b6
commit
066e302ba1
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue