diff options
Diffstat (limited to 'rbutil/rbutilqt')
-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 | ||