diff src/gui/pages/anime_list.cc @ 232:ff0061e75f0f

theme: add OS detection with glib
author Paper <mrpapersonic@gmail.com>
date Sat, 13 Jan 2024 11:06:16 -0500
parents 2f5a9247e501
children 4d461ef7d424
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc	Sat Jan 13 09:43:41 2024 -0500
+++ b/src/gui/pages/anime_list.cc	Sat Jan 13 11:06:16 2024 -0500
@@ -218,12 +218,12 @@
 }
 
 void AnimeListPage::UpdateAnime(int id) {
-	QThread* thread = QThread::create([id] {
+	QThread* thread = QThread::create([this, id] {
 		Services::UpdateAnimeEntry(id);
 	});
 
 	connect(thread, &QThread::finished, this, &AnimeListPage::Refresh);
-	connect(thread, &QThread::finished, this, &QThread::deleteLater);
+	connect(thread, &QThread::finished, thread, &QThread::deleteLater);
 
 	thread->start();
 }