mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Fix, take 2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14702 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8f1e746bd
commit
3503c1aaad
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue