summaryrefslogtreecommitdiffstats
path: root/libutil/src/dlqueue.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-07-07 23:51:26 +0200
committerPetr Mrázek <peterix@gmail.com>2013-07-07 23:51:26 +0200
commitee5583251d92d47f96b03c3b447c115bab901c17 (patch)
treea95fe8709eb05ab776090479e49bae8d6def6d0e /libutil/src/dlqueue.cpp
parenta23323a01ee2713209619ad99d8859616aa99cdb (diff)
downloadMultiMC-ee5583251d92d47f96b03c3b447c115bab901c17.tar
MultiMC-ee5583251d92d47f96b03c3b447c115bab901c17.tar.gz
MultiMC-ee5583251d92d47f96b03c3b447c115bab901c17.tar.lz
MultiMC-ee5583251d92d47f96b03c3b447c115bab901c17.tar.xz
MultiMC-ee5583251d92d47f96b03c3b447c115bab901c17.zip
Legacy versions downloaded from the new location are treated as legacy versions!
Diffstat (limited to 'libutil/src/dlqueue.cpp')
-rw-r--r--libutil/src/dlqueue.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libutil/src/dlqueue.cpp b/libutil/src/dlqueue.cpp
index dfc51f36..7e4d47eb 100644
--- a/libutil/src/dlqueue.cpp
+++ b/libutil/src/dlqueue.cpp
@@ -1,20 +1,20 @@
#include "include/dlqueue.h"
-DownloadJob::DownloadJob ( QUrl url, QString rel_target_path, QString expected_md5 )
+DownloadJob::DownloadJob ( QUrl url, QString target_path, QString expected_md5 )
:Job()
{
m_url = url;
- m_rel_target_path = rel_target_path;
+ m_target_path = target_path;
m_expected_md5 = expected_md5;
m_check_md5 = m_expected_md5.size();
- m_save_to_file = m_rel_target_path.size();
+ m_save_to_file = m_target_path.size();
m_status = Job_NotStarted;
}
-JobPtr DownloadJob::create ( QUrl url, QString rel_target_path, QString expected_md5 )
+JobPtr DownloadJob::create ( QUrl url, QString target_path, QString expected_md5 )
{
- return JobPtr ( new DownloadJob ( url, rel_target_path, expected_md5 ) );
+ return JobPtr ( new DownloadJob ( url, target_path, expected_md5 ) );
}
void DownloadJob::start()
@@ -22,7 +22,7 @@ void DownloadJob::start()
m_manager.reset ( new QNetworkAccessManager() );
if ( m_save_to_file )
{
- QString filename = m_rel_target_path;
+ QString filename = m_target_path;
m_output_file.setFileName ( filename );
// if there already is a file and md5 checking is in effect
if ( m_output_file.exists() && m_check_md5 )