Browse Source

Merge pull request #8721 from sledgehammer999/fix_string_arg

Fix wrong QString::arg() usage that leads to crash
adaptive-webui-19844
sledgehammer999 7 years ago committed by GitHub
parent
commit
784b154228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/net/proxyconfigurationmanager.cpp

4
src/base/net/proxyconfigurationmanager.cpp

@ -139,10 +139,10 @@ void ProxyConfigurationManager::configureProxy() @@ -139,10 +139,10 @@ void ProxyConfigurationManager::configureProxy()
, m_config.password, m_config.ip, QString::number(m_config.port));
break;
case ProxyType::HTTP:
proxyStrHTTP = QString("http://%1:%2").arg(m_config.ip, m_config.port);
proxyStrHTTP = QString("http://%1:%2").arg(m_config.ip, QString::number(m_config.port));
break;
case ProxyType::SOCKS5:
proxyStrSOCK = QString("%1:%2").arg(m_config.ip, m_config.port);
proxyStrSOCK = QString("%1:%2").arg(m_config.ip, QString::number(m_config.port));
break;
case ProxyType::SOCKS5_PW:
proxyStrSOCK = QString("%1:%2@%3:%4").arg(m_config.username

Loading…
Cancel
Save