aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/PackProfile.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-06-22 19:56:24 -0300
committerflow <flowlnlnln@gmail.com>2022-06-22 20:20:39 -0300
commit5da87d190464421b4dc50810aaf9619f1ef29d5a (patch)
tree5d5a5fb26c072592cfbea11f3b8c909a97236b08 /launcher/minecraft/PackProfile.cpp
parent03e454b71d83aebbb534c5734ccd9093842da28c (diff)
downloadPrismLauncher-5da87d190464421b4dc50810aaf9619f1ef29d5a.tar.gz
PrismLauncher-5da87d190464421b4dc50810aaf9619f1ef29d5a.tar.bz2
PrismLauncher-5da87d190464421b4dc50810aaf9619f1ef29d5a.zip
fix: add missing connections to the abort signal
Beginning with efa3fbff39bf0dabebdf1c6330090ee320895a4d, we separated the failing and the aborting signals, as they can mean different things in certain contexts. Still, some places are not yet changed to reflect this modification. This can cause aborting of progress dialogs to not work, instead making the application hang in an unusable satte. This goes through some places where it's not hooked up yet, fixing their behaviour in those kinds of situation.
Diffstat (limited to 'launcher/minecraft/PackProfile.cpp')
-rw-r--r--launcher/minecraft/PackProfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp
index 125048f0..01d42b00 100644
--- a/launcher/minecraft/PackProfile.cpp
+++ b/launcher/minecraft/PackProfile.cpp
@@ -346,6 +346,7 @@ void PackProfile::resolve(Net::Mode netmode)
d->m_updateTask.reset(updateTask);
connect(updateTask, &ComponentUpdateTask::succeeded, this, &PackProfile::updateSucceeded);
connect(updateTask, &ComponentUpdateTask::failed, this, &PackProfile::updateFailed);
+ connect(updateTask, &ComponentUpdateTask::aborted, this, [this]{ updateFailed(tr("Aborted")); });
d->m_updateTask->start();
}