summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-14 21:55:54 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-14 21:55:54 +0000
commitb8f1e746bdd28bcc48b0a8f6b63cea4a1c934612 (patch)
tree56a787d1fdca4e60112a047f5f6b8118d253e853
parent7d8aa2e96cc08949612296e1aead792f1c3136ae (diff)
downloadrockbox-b8f1e746bdd28bcc48b0a8f6b63cea4a1c934612.tar.gz
rockbox-b8f1e746bdd28bcc48b0a8f6b63cea4a1c934612.zip
Fix http caching.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14701 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/httpget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp
index 7680cb2d53..fa33b4685a 100644
--- a/rbutil/rbutilqt/httpget.cpp
+++ b/rbutil/rbutilqt/httpget.cpp
@@ -49,13 +49,13 @@ void HttpGet::setCache(QDir d)
49 m_cachedir = d; 49 m_cachedir = d;
50 bool result = true; 50 bool result = true;
51 51
52 QString p = m_cachedir.absolutePath() + "/rbutil-cache"; 52 QString p = m_cachedir.absolutePath() + "rbutil-cache";
53 if(QFileInfo(m_cachedir.absolutePath()).isDir()) 53 if(QFileInfo(m_cachedir.absolutePath()).isDir())
54 if(!QFileInfo(p).isDir()) 54 if(!QFileInfo(p).isDir())
55 result = m_cachedir.mkdir("rbutil-cache"); 55 result = m_cachedir.mkdir("rbutil-cache");
56 else result = false; 56 else result = false;
57 qDebug() << "HttpGet::setCache(QDir)" << result; 57 qDebug() << "HttpGet::setCache(QDir)" << result;
58 m_usecache = !result; 58 m_usecache = result;
59} 59}
60 60
61 61