diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-01-04 01:48:36 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-01-04 01:48:36 +0100 |
commit | ec2732ccd16778c433d2312793b65edb131bc7c5 (patch) | |
tree | 3f19f3df7e3d6fac24bcbc465f2c9be572e4ee94 /application | |
parent | 4b7971f60fd7ab7cbbd6fd50b14e9361fe6de036 (diff) | |
download | MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.gz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.lz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.xz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.zip |
NOISSUE update FTB URLs
Diffstat (limited to 'application')
-rw-r--r-- | application/pages/modplatform/FtbListModel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/pages/modplatform/FtbListModel.cpp b/application/pages/modplatform/FtbListModel.cpp index f4311afb..51aec890 100644 --- a/application/pages/modplatform/FtbListModel.cpp +++ b/application/pages/modplatform/FtbListModel.cpp @@ -10,6 +10,8 @@ #include <RWStorage.h> #include <Env.h> +#include "net/URLConstants.h" + FtbFilterModel::FtbFilterModel(QObject *parent) : QSortFilterProxyModel(parent) { currentSorting = Sorting::ByGameVersion; @@ -214,7 +216,7 @@ void FtbListModel::requestLogo(QString file) MetaEntryPtr entry = ENV.metacache()->resolveEntry("FTBPacks", QString("logos/%1").arg(file.section(".", 0, 0))); NetJob *job = new NetJob(QString("FTB Icon Download for %1").arg(file)); - job->addNetAction(Net::Download::makeCached(QUrl(QString("https://ftb.cursecdn.com/FTB2/static/%1").arg(file)), entry)); + job->addNetAction(Net::Download::makeCached(QUrl(QString(URLConstants::FTB_CDN_BASE_URL + "static/%1").arg(file)), entry)); auto fullPath = entry->getFullPath(); QObject::connect(job, &NetJob::finished, this, [this, file, fullPath] |