Merge remote branch 'origin/KDE/4.12'

This commit is contained in:
Andrea Iacovitti 2013-11-28 17:20:23 +01:00
commit 40bc548566
3 changed files with 12 additions and 4 deletions

View file

@ -292,7 +292,7 @@ void KProxyDialog::load()
mProxyMap[QL1S("FtpProxy")] = KProtocolManager::proxyFor(QL1S("ftp")); mProxyMap[QL1S("FtpProxy")] = KProtocolManager::proxyFor(QL1S("ftp"));
mProxyMap[QL1S("SocksProxy")] = KProtocolManager::proxyFor(QL1S("socks")); mProxyMap[QL1S("SocksProxy")] = KProtocolManager::proxyFor(QL1S("socks"));
mProxyMap[QL1S("ProxyScript")] = KProtocolManager::proxyConfigScript(); mProxyMap[QL1S("ProxyScript")] = KProtocolManager::proxyConfigScript();
mProxyMap[QL1S("NoProxy")] = KProtocolManager::noProxyFor(); mProxyMap[QL1S("NoProxy")] = KSaveIOConfig::noProxyFor();
const int proxyType = KProtocolManager::proxyType(); const int proxyType = KProtocolManager::proxyType();
@ -446,8 +446,9 @@ void KProxyDialog::on_autoDetectButton_clicked()
count += (autoDetectSystemProxy(mUi.systemProxySocksEdit, ENV_SOCKS_PROXY) ? 1 : 0); count += (autoDetectSystemProxy(mUi.systemProxySocksEdit, ENV_SOCKS_PROXY) ? 1 : 0);
count += (autoDetectSystemProxy(mUi.systemNoProxyEdit, ENV_NO_PROXY) ? 1 : 0); count += (autoDetectSystemProxy(mUi.systemNoProxyEdit, ENV_NO_PROXY) ? 1 : 0);
if (count) if (count) {
emit changed (true); emit changed(true);
}
} }
void KProxyDialog::on_manualProxyHttpEdit_textChanged(const QString& text) void KProxyDialog::on_manualProxyHttpEdit_textChanged(const QString& text)

View file

@ -184,6 +184,12 @@ void KSaveIOConfig::setProxyType(KProtocolManager::ProxyType type)
cfg.sync(); cfg.sync();
} }
QString KSaveIOConfig::noProxyFor()
{
KConfigGroup cfg(config(), "Proxy Settings");
return cfg.readEntry("NoProxyFor");
}
void KSaveIOConfig::setNoProxyFor( const QString& _noproxy ) void KSaveIOConfig::setNoProxyFor( const QString& _noproxy )
{ {
KConfigGroup cfg (config(), "Proxy Settings"); KConfigGroup cfg (config(), "Proxy Settings");

View file

@ -61,6 +61,7 @@ void setProxyConfigScript (const QString&);
void setProxyFor (const QString&, const QString&); void setProxyFor (const QString&, const QString&);
QString noProxyFor();
void setNoProxyFor (const QString&); void setNoProxyFor (const QString&);