mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 14:42:31 -05:00
Fix http caching.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14701 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7d8aa2e96c
commit
b8f1e746bd
1 changed files with 2 additions and 2 deletions
|
|
@ -49,13 +49,13 @@ void HttpGet::setCache(QDir d)
|
||||||
m_cachedir = d;
|
m_cachedir = d;
|
||||||
bool result = true;
|
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(m_cachedir.absolutePath()).isDir())
|
||||||
if(!QFileInfo(p).isDir())
|
if(!QFileInfo(p).isDir())
|
||||||
result = m_cachedir.mkdir("rbutil-cache");
|
result = m_cachedir.mkdir("rbutil-cache");
|
||||||
else result = false;
|
else result = false;
|
||||||
qDebug() << "HttpGet::setCache(QDir)" << result;
|
qDebug() << "HttpGet::setCache(QDir)" << result;
|
||||||
m_usecache = !result;
|
m_usecache = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue