summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-14 22:13:46 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-14 22:13:46 +0000
commit3503c1aaad48f824de305701f4b1888a8349909a (patch)
treeac4d2677e3ba0f092eed916199f8c4b53572e6b1 /rbutil
parentb8f1e746bdd28bcc48b0a8f6b63cea4a1c934612 (diff)
downloadrockbox-3503c1aaad48f824de305701f4b1888a8349909a.tar.gz
rockbox-3503c1aaad48f824de305701f4b1888a8349909a.tar.bz2
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.cpp8
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)
{
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;
}