aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@users.noreply.github.com>2021-12-30 19:58:16 +0100
committerGitHub <noreply@github.com>2021-12-30 19:58:16 +0100
commit5e909a4e852a5bf3ba9dec9081b4839773bfc0ce (patch)
treed7e4e6da909c2f01d66712159e28520c47940ec3 /launcher/ui/pages
parente7b90a9a3cf0e45a510750b01e4fcf2f6eaced1e (diff)
parentbe029ab36015bfc19a40e27a42ab10be03e6eea5 (diff)
downloadPrismLauncher-5e909a4e852a5bf3ba9dec9081b4839773bfc0ce.tar.gz
PrismLauncher-5e909a4e852a5bf3ba9dec9081b4839773bfc0ce.tar.bz2
PrismLauncher-5e909a4e852a5bf3ba9dec9081b4839773bfc0ce.zip
Merge pull request #4394 from Janrupf/develop
GH-4299 Fix Screenshot upload
Diffstat (limited to 'launcher/ui/pages')
-rw-r--r--launcher/ui/pages/instance/ScreenshotsPage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/ScreenshotsPage.cpp b/launcher/ui/pages/instance/ScreenshotsPage.cpp
index 06c4379f..3fcc61fa 100644
--- a/launcher/ui/pages/instance/ScreenshotsPage.cpp
+++ b/launcher/ui/pages/instance/ScreenshotsPage.cpp
@@ -314,6 +314,8 @@ void ScreenshotsPage::on_actionUpload_triggered()
m_uploadActive = true;
ProgressDialog dialog(this);
+
+ job->setNetwork(APPLICATION->network());
if(dialog.execWithTask(job.get()) != QDialog::Accepted)
{
CustomMessageBox::selectable(this, tr("Failed to upload screenshots!"),
@@ -348,7 +350,9 @@ void ScreenshotsPage::on_actionUpload_triggered()
auto albumTask = NetJob::Ptr(new NetJob("Imgur Album Creation"));
auto imgurAlbum = ImgurAlbumCreation::make(uploaded);
albumTask->addNetAction(imgurAlbum);
+ job->setNetwork(APPLICATION->network());
task.addTask(job);
+ albumTask->setNetwork(APPLICATION->network());
task.addTask(albumTask);
m_uploadActive = true;
ProgressDialog prog(this);