- Some bug fixes (Proxy)

This commit is contained in:
Christophe Dumez
2007-11-22 10:49:10 +00:00
parent 78fc5d4865
commit b1d8fb0f11
3 changed files with 16 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ subDownloadThread::subDownloadThread(QObject *parent, QString url) : QThread(par
url_stream = new ost::URLStream();
// Proxy support
QSettings settings("qBittorrent", "qBittorrent");
int intValue = settings.value(QString::fromUtf8("[Preferences/Connection/ProxyType"), 0).toInt();
int intValue = settings.value(QString::fromUtf8("Preferences/Connection/ProxyType"), 0).toInt();
if(intValue > 0) {
// Proxy enabled
url_stream->setProxy(settings.value(QString::fromUtf8("Preferences/Connection/Proxy/IP"), "0.0.0.0").toString().toUtf8().data(), settings.value(QString::fromUtf8("Preferences/Connection/Proxy/Port"), 8080).toInt());