sneedmc/launcher/ui
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
..
dialogs feat(ui): remember mod download dialog's geometry 2022-08-01 07:33:31 -03:00
instanceview chore: update license headers 2022-07-10 12:19:15 +02:00
pagedialog NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
pages fix: prevent segfault due to callbacks into deleted objects 2022-08-01 18:34:15 -03:00
setupwizard Add migration wizard, fix migration from custom paste instance 2022-05-21 17:30:19 +01:00
themes fix: dark placeholder text in dark background on dark theme 2022-07-18 14:25:00 -03:00
widgets feat+refactor: clean up ProgressWidget and add progress indicatior to 2022-08-01 07:33:30 -03:00
ColorCache.cpp NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ColorCache.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
GuiUtil.cpp Revert "fix: remove updater if it is not used" 2022-07-06 18:13:51 +02:00
GuiUtil.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
InstanceWindow.cpp chore: update license headers 2022-07-10 12:19:15 +02:00
InstanceWindow.h chore: update license headers 2022-07-10 12:19:15 +02:00
MainWindow.cpp Trash instances instead of deleting (when possible) (#549) 2022-07-30 14:42:33 -03:00
MainWindow.h Trash instances instead of deleting (when possible) (#549) 2022-07-30 14:42:33 -03:00