1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Replace deprecated QString::null

This commit is contained in:
Chocobo1 2019-02-27 16:06:05 +08:00
parent 6dab93f7fd
commit c6ae1aa9d9
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -199,11 +199,11 @@ void AdvancedSettings::saveAdvancedSettings()
// Interface address
if (comboBoxInterfaceAddress.currentIndex() == 0) {
// All addresses (default)
session->setNetworkInterfaceAddress(QString::null);
session->setNetworkInterfaceAddress({});
}
else {
QHostAddress ifaceAddr(comboBoxInterfaceAddress.currentText().trimmed());
ifaceAddr.isNull() ? session->setNetworkInterfaceAddress(QString::null) : session->setNetworkInterfaceAddress(ifaceAddr.toString());
ifaceAddr.isNull() ? session->setNetworkInterfaceAddress({}) : session->setNetworkInterfaceAddress(ifaceAddr.toString());
}
session->setIPv6Enabled(checkBoxListenIPv6.isChecked());
// Announce IP