aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-19 00:36:37 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-19 00:36:37 +0300
commit1bdde1f947f57801f2fcb1a0f881f19bd8e1e29d (patch)
tree96a30c44f6b71ca7f93cfc6b7cb4bad6dcaa1a55 /launcher/ui/dialogs
parent319ce8c19f801a4bec920c6778cf140e9f92ee32 (diff)
downloadPrismLauncher-1bdde1f947f57801f2fcb1a0f881f19bd8e1e29d.tar.gz
PrismLauncher-1bdde1f947f57801f2fcb1a0f881f19bd8e1e29d.tar.bz2
PrismLauncher-1bdde1f947f57801f2fcb1a0f881f19bd8e1e29d.zip
Small fixes
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r--launcher/ui/dialogs/ResourceDownloadDialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
index 819cf7de..c7d9da4e 100644
--- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp
+++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
@@ -125,7 +125,7 @@ void ResourceDownloadDialog::connectButtons()
static ModPlatform::ProviderCapabilities ProviderCaps;
-QStringList getReqiredBy(QList<ResourceDownloadDialog::DownloadTaskPtr> tasks, QVariant addonId)
+QStringList getRequiredBy(QList<ResourceDownloadDialog::DownloadTaskPtr> tasks, QVariant addonId)
{
auto req = QStringList();
for (auto& task : tasks) {
@@ -167,10 +167,10 @@ void ResourceDownloadDialog::confirm()
if (ret == QDialog::DialogCode::Rejected) {
QMetaObject::invokeMethod(this, "reject", Qt::QueuedConnection);
return;
- } else
- for (auto dep : task->getDependecies()) {
+ } else {
+ for (auto dep : task->getDependecies())
addResource(dep->pack, dep->version);
- }
+ }
}
auto selected = getTasks();
@@ -179,7 +179,7 @@ void ResourceDownloadDialog::confirm()
});
for (auto& task : selected) {
confirm_dialog->appendResource({ task->getName(), task->getFilename(), task->getCustomPath(),
- ProviderCaps.name(task->getProvider()), getReqiredBy(selected, task->getPack()->addonId) });
+ ProviderCaps.name(task->getProvider()), getRequiredBy(selected, task->getPack()->addonId) });
}
if (confirm_dialog->exec()) {