Browse Source

Replace deprecated QString::null

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
c6ae1aa9d9
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/advancedsettings.cpp

4
src/gui/advancedsettings.cpp

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

Loading…
Cancel
Save