summaryrefslogtreecommitdiffstats
path: root/libutil/src/dlqueue.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-05 03:29:50 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-05 03:29:50 +0200
commit183a7351456940d01f14a49112ddeb68ffc4693a (patch)
tree579aeb0b8670e634de4f083e54b3c826bf548ec9 /libutil/src/dlqueue.cpp
parent005a010ee6a67191ec24583780310fcf217ff30c (diff)
downloadMultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.gz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.lz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.xz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.zip
Runnable 1.6 instances!
Diffstat (limited to 'libutil/src/dlqueue.cpp')
-rw-r--r--libutil/src/dlqueue.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/libutil/src/dlqueue.cpp b/libutil/src/dlqueue.cpp
index d73dc356..65e0e31e 100644
--- a/libutil/src/dlqueue.cpp
+++ b/libutil/src/dlqueue.cpp
@@ -1,4 +1,5 @@
#include "include/dlqueue.h"
+#include <include/pathutils.h>
DownloadJob::DownloadJob (QUrl url,
QString target_path,
@@ -48,13 +49,6 @@ JobPtr DownloadJob::create (QSharedPointer<QNetworkAccessManager> net_mgr,
return JobPtr ( new DownloadJob ( net_mgr, url, target_path, expected_md5 ) );
}
-bool DownloadJob::ensurePathExists(QString filenamepath)
-{
- QFileInfo a ( filenamepath );
- QDir dir;
- return (dir.mkpath ( a.path() ));
-}
-
void DownloadJob::start()
{
if ( m_save_to_file )