When unsetting the proxy in the settings dialog unset the global proxy too. Update settings in prior to re-downloading the info files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16596 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-03-09 23:33:53 +00:00
parent 191b7e8380
commit c7052c341c

View file

@ -241,8 +241,8 @@ void RbUtilQt::configDialog()
Config *cw = new Config(this);
cw->setSettings(settings);
cw->show();
connect(cw, SIGNAL(settingsUpdated()), this, SLOT(downloadInfo()));
connect(cw, SIGNAL(settingsUpdated()), this, SLOT(updateSettings()));
connect(cw, SIGNAL(settingsUpdated()), this, SLOT(downloadInfo()));
}
@ -257,6 +257,9 @@ void RbUtilQt::updateSettings()
else if(settings->proxyType() == "manual") {
HttpGet::setGlobalProxy(settings->proxy());
}
else {
HttpGet::setGlobalProxy(QUrl(""));
}
HttpGet::setGlobalCache(settings->cachePath());
}