Cockatrice/cockatrice/src
Lukas Brübach 77ded1da97 [PictureLoader] Fix worker thread shutdown and cross-thread cache clearing
clearNetworkCache() ran directly on the UI thread while the worker thread
owned the disk cache and redirect cache, racing cache reads/writes. Make it
a worker-thread slot invoked via a blocking queued call when the thread is
running, so the 'Cached card pictures have been reset.' message is truthful.

The worker thread was also never quit()/wait()ed: both destructors only
deleteLater'd their objects, so Qt warned 'QThread: Destroyed while thread
is still running' and leaked a running loop at exit. Wire the worker's
finished() signal to its own deleteLater() (canonical worker-object
pattern), add shutdownThread() to stop the loop, and let CardPictureLoader
destroy the QThread only after wait() has returned.
2026-09-13 03:36:32 +02:00
..
client Use capitalized app names (#7255) 2026-09-12 17:30:46 +02:00
database/interface [Settings] Split cache_settings monolith into multiple SettingsManager sub-classes (#7050) 2026-07-27 11:25:39 +02:00
filters Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
game [Game] Preserve hand card order when restoring connection (#7266) 2026-09-07 08:21:44 +02:00
game_graphics Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
interface [PictureLoader] Fix worker thread shutdown and cross-thread cache clearing 2026-09-13 03:36:32 +02:00
main.cpp Use capitalized app names (#7255) 2026-09-12 17:30:46 +02:00
main.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
single_instance_manager.cpp Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00
single_instance_manager.h Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00