diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 22:13:46 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 22:13:46 +0000 |
commit | 3503c1aaad48f824de305701f4b1888a8349909a (patch) | |
tree | ac4d2677e3ba0f092eed916199f8c4b53572e6b1 /rbutil | |
parent | b8f1e746bdd28bcc48b0a8f6b63cea4a1c934612 (diff) | |
download | rockbox-3503c1aaad48f824de305701f4b1888a8349909a.tar.gz rockbox-3503c1aaad48f824de305701f4b1888a8349909a.zip |
Fix, take 2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14702 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/httpget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp index fa33b4685a..0bf5d966eb 100644 --- a/rbutil/rbutilqt/httpget.cpp +++ b/rbutil/rbutilqt/httpget.cpp | |||
@@ -48,11 +48,13 @@ void HttpGet::setCache(QDir d) | |||
48 | { | 48 | { |
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 | { | ||
54 | if(!QFileInfo(p).isDir()) | 55 | if(!QFileInfo(p).isDir()) |
55 | result = m_cachedir.mkdir("rbutil-cache"); | 56 | result = m_cachedir.mkdir("rbutil-cache"); |
57 | } | ||
56 | else result = false; | 58 | else result = false; |
57 | qDebug() << "HttpGet::setCache(QDir)" << result; | 59 | qDebug() << "HttpGet::setCache(QDir)" << result; |
58 | m_usecache = result; | 60 | m_usecache = result; |
@@ -184,7 +186,7 @@ bool HttpGet::getFile(const QUrl &url) | |||
184 | getRequest = http.get(url.path() + query, outputFile); | 186 | getRequest = http.get(url.path() + query, outputFile); |
185 | } | 187 | } |
186 | qDebug() << "[HTTP] request scheduled: GET" << getRequest; | 188 | qDebug() << "[HTTP] request scheduled: GET" << getRequest; |
187 | 189 | ||
188 | return true; | 190 | return true; |
189 | } | 191 | } |
190 | 192 | ||