ShatteredPrism/launcher/ui/pages/modplatform
flow 4a8abc948e
fix: prevent segfault due to callbacks into deleted objects
Since network requests are, for the most part, asynchronous, there's a
chance a request only comes through after the request sender has already
been deleted.

This adds a global (read static) hash table relating models for the mod
downloader to their status (true = alive, false = destroyed). It is a
bit of a hack, but I couldn't come up with a better way of doing this.

To reproduce the issue before this commit: scroll really quickly through
CF mods, to trigger network requests for their versions and description.
Then, in the middle of it close the mod downloader. Sometimes this will
create a crash.

Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01 18:34:15 -03:00
..
atlauncher ATLauncher: Pass the full pack name through to the install task 2022-05-29 00:04:27 +01:00
flame feat: lazy-load CF mod descriptions 2022-08-01 07:33:30 -03:00
ftb chore: add license headers 2022-07-26 20:33:29 +02:00
legacy_ftb chore: update license headers 2022-07-10 12:19:15 +02:00
modrinth chore: update license headers 2022-07-10 12:19:15 +02:00
technic fix: aborts when using a Qt build with assertions enabled 2022-07-03 12:44:19 -03:00
ImportPage.cpp chore: update license headers 2022-07-10 12:19:15 +02:00
ImportPage.h chore: add license header 2022-03-20 21:40:49 +01:00
ImportPage.ui fix: spelling of CF 2022-07-08 16:25:03 +02:00
ModModel.cpp fix: prevent segfault due to callbacks into deleted objects 2022-08-01 18:34:15 -03:00
ModModel.h fix: prevent segfault due to callbacks into deleted objects 2022-08-01 18:34:15 -03:00
ModPage.cpp fix(ui): force redraw of mod list when (de)selecting a mod 2022-08-01 07:33:31 -03:00
ModPage.h feat+refactor: clean up ProgressWidget and add progress indicatior to 2022-08-01 07:33:30 -03:00
ModPage.ui rework: make the filter as a tabbed widget in the dialog itself 2022-04-15 08:49:43 -03:00
VanillaPage.cpp Fix crash if no Minecraft version is selected in the new instance screen 2022-04-19 22:20:00 -04:00
VanillaPage.h Add option to install mod loader during instance creation 2022-04-15 15:37:07 -04:00
VanillaPage.ui Add Quilt install option while creating an instance 2022-04-15 15:37:08 -04:00