mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Replace deprecated QString::null
This commit is contained in:
parent
6dab93f7fd
commit
c6ae1aa9d9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue