Fix, take 2.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14702 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Antoine Cellerier 2007-09-14 22:13:46 +00:00
parent b8f1e746bd
commit 3503c1aaad

View file

@ -48,11 +48,13 @@ void HttpGet::setCache(QDir d)
{
m_cachedir = d;
bool result = true;
QString p = m_cachedir.absolutePath() + "rbutil-cache";
QString p = m_cachedir.absolutePath() + "/rbutil-cache";
if(QFileInfo(m_cachedir.absolutePath()).isDir())
{
if(!QFileInfo(p).isDir())
result = m_cachedir.mkdir("rbutil-cache");
}
else result = false;
qDebug() << "HttpGet::setCache(QDir)" << result;
m_usecache = result;
@ -184,7 +186,7 @@ bool HttpGet::getFile(const QUrl &url)
getRequest = http.get(url.path() + query, outputFile);
}
qDebug() << "[HTTP] request scheduled: GET" << getRequest;
return true;
}