aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-06-07 08:47:19 +0200
committerGitHub <noreply@github.com>2023-06-07 08:47:19 +0200
commitaccf0cd40e8c7788591af4b169372245c25efe18 (patch)
tree9621f542cd42bd64a362a8fb6fe99a280bf33f38 /launcher
parent3b9d822d728a311705caf0dbc4a17511e1f5b7c4 (diff)
parenta807b231a75fdcb95408aa35a3143e2e5f5ca60f (diff)
downloadPrismLauncher-accf0cd40e8c7788591af4b169372245c25efe18.tar.gz
PrismLauncher-accf0cd40e8c7788591af4b169372245c25efe18.tar.bz2
PrismLauncher-accf0cd40e8c7788591af4b169372245c25efe18.zip
Merge pull request #1115 from leo78913/fix-resource-downloader-crash
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/dialogs/ResourceDownloadDialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
index 61c48e75..6d90480f 100644
--- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp
+++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
@@ -253,6 +253,8 @@ QList<BasePage*> ResourcePackDownloadDialog::getPages()
if (APPLICATION->capabilities() & Application::SupportsFlame)
pages.append(FlameResourcePackPage::create(this, *m_instance));
+ m_selectedPage = dynamic_cast<ResourcePackResourcePage*>(pages[0]);
+
return pages;
}
@@ -278,6 +280,8 @@ QList<BasePage*> TexturePackDownloadDialog::getPages()
if (APPLICATION->capabilities() & Application::SupportsFlame)
pages.append(FlameTexturePackPage::create(this, *m_instance));
+ m_selectedPage = dynamic_cast<TexturePackResourcePage*>(pages[0]);
+
return pages;
}
@@ -301,6 +305,8 @@ QList<BasePage*> ShaderPackDownloadDialog::getPages()
pages.append(ModrinthShaderPackPage::create(this, *m_instance));
+ m_selectedPage = dynamic_cast<ShaderPackResourcePage*>(pages[0]);
+
return pages;
}