Fix some bugs about Windows release

This commit is contained in:
baydam
2016-06-22 01:14:45 +01:00
parent 852d720b1b
commit 05193dcf11
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -148,8 +148,10 @@ void PreferenceDialog::refreshCurrentIP()
{
foreach (const QHostAddress &address, QNetworkInterface::allAddresses()) {
if (address.protocol() == QAbstractSocket::IPv4Protocol
&& address != QHostAddress(QHostAddress::LocalHost))
&& address != QHostAddress(QHostAddress::LocalHost)) {
_machineAddressLabel->setText(address.toString());
break;
}
}
}