mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Merge pull request #11020 from Piccirello/remove_workaround
Remove Qt bug workaround
This commit is contained in:
commit
c65c40a5cb
1 changed files with 0 additions and 6 deletions
|
@ -462,12 +462,6 @@ void AdvancedSettings::loadAdvancedSettings()
|
||||||
bool interfaceExists = currentInterface.isEmpty();
|
bool interfaceExists = currentInterface.isEmpty();
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (const QNetworkInterface &iface : asConst(QNetworkInterface::allInterfaces())) {
|
for (const QNetworkInterface &iface : asConst(QNetworkInterface::allInterfaces())) {
|
||||||
// This line fixes a Qt bug => https://bugreports.qt.io/browse/QTBUG-52633
|
|
||||||
// Tested in Qt 5.6.0. For more info see:
|
|
||||||
// https://github.com/qbittorrent/qBittorrent/issues/5131
|
|
||||||
// https://github.com/qbittorrent/qBittorrent/pull/5135
|
|
||||||
if (iface.addressEntries().isEmpty()) continue;
|
|
||||||
|
|
||||||
m_comboBoxInterface.addItem(iface.humanReadableName(), iface.name());
|
m_comboBoxInterface.addItem(iface.humanReadableName(), iface.name());
|
||||||
if (!currentInterface.isEmpty() && (iface.name() == currentInterface)) {
|
if (!currentInterface.isEmpty() && (iface.name() == currentInterface)) {
|
||||||
m_comboBoxInterface.setCurrentIndex(i);
|
m_comboBoxInterface.setCurrentIndex(i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue