aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp
diff options
context:
space:
mode:
authorswirl <roachh@protonmail.com>2021-12-31 14:27:21 -0500
committerGitHub <noreply@github.com>2021-12-31 14:27:21 -0500
commit541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa (patch)
tree5a300af57c0207d38980319d54dc04218828aa1e /launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp
parent0c177b1086d69993e012ba1fbed1adf6bfe04144 (diff)
parentfa98ed3ccd74cbf0228baf13851b6bb6d17d51a3 (diff)
downloadPrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.gz
PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.bz2
PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.zip
Merge pull request #8 from dada513/upstream_update
Diffstat (limited to 'launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp')
-rw-r--r--launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp b/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp
index 82e383ca..ef9a9268 100644
--- a/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp
+++ b/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp
@@ -86,11 +86,11 @@ void ListModel::request()
modpacks.clear();
endResetModel();
- auto *netJob = new NetJob("Atl::Request");
+ auto *netJob = new NetJob("Atl::Request", APPLICATION->network());
auto url = QString(BuildConfig.ATL_DOWNLOAD_SERVER_URL + "launcher/json/packsnew.json");
netJob->addNetAction(Net::Download::makeByteArray(QUrl(url), &response));
jobPtr = netJob;
- jobPtr->start(APPLICATION->network());
+ jobPtr->start();
QObject::connect(netJob, &NetJob::succeeded, this, &ListModel::requestFinished);
QObject::connect(netJob, &NetJob::failed, this, &ListModel::requestFailed);
@@ -183,7 +183,7 @@ void ListModel::requestLogo(QString file, QString url)
}
MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("ATLauncherPacks", QString("logos/%1").arg(file.section(".", 0, 0)));
- NetJob *job = new NetJob(QString("ATLauncher Icon Download %1").arg(file));
+ NetJob *job = new NetJob(QString("ATLauncher Icon Download %1").arg(file), APPLICATION->network());
job->addNetAction(Net::Download::makeCached(QUrl(url), entry));
auto fullPath = entry->getFullPath();
@@ -201,7 +201,7 @@ void ListModel::requestLogo(QString file, QString url)
emit logoFailed(file);
});
- job->start(APPLICATION->network());
+ job->start();
m_loadingLogos.append(file);
}