From 5a75184c4abfd2c8fa2a3ee705b94fc800d7b918 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 5 Mar 2008 21:12:24 +0000 Subject: add global proxy / cache settings to httpget class. This removes the need of passing proxy / cache values around all the time. Each object can still override the global values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16530 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/installzip.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'rbutil/rbutilqt/installzip.cpp') diff --git a/rbutil/rbutilqt/installzip.cpp b/rbutil/rbutilqt/installzip.cpp index 641b057175..3948e7ea75 100644 --- a/rbutil/rbutilqt/installzip.cpp +++ b/rbutil/rbutilqt/installzip.cpp @@ -25,7 +25,7 @@ ZipInstaller::ZipInstaller(QObject* parent): QObject(parent) { m_unzip = true; - m_cache = ""; + m_usecache = false; } @@ -86,10 +86,8 @@ void ZipInstaller::installStart() downloadFile->close(); // get the real file. getter = new HttpGet(this); - getter->setProxy(m_proxy); - if(m_cache.exists()) { - getter->setCache(m_cache); - + if(m_usecache) { + getter->setCache(true); } getter->setFile(downloadFile); getter->getFile(QUrl(m_url)); -- cgit v1.2.3