diff src/main.cc @ 325:78929794e7d8

pages/seasons: run seasons search in a separate thread
author Paper <paper@paper.us.eu.org>
date Thu, 13 Jun 2024 00:36:41 -0400
parents b1f4d1867ab1
children b5d6c27c308f
line wrap: on
line diff
--- a/src/main.cc	Wed Jun 12 23:03:22 2024 -0400
+++ b/src/main.cc	Thu Jun 13 00:36:41 2024 -0400
@@ -1,4 +1,6 @@
+#include "core/anime.h"
 #include "core/anime_db.h"
+#include "core/date.h"
 #include "core/session.h"
 #include "core/strings.h"
 #include "gui/window.h"
@@ -20,6 +22,8 @@
 	qRegisterMetaType<std::vector<std::string>>(); /* window.cc */
 	qRegisterMetaType<std::vector<int>>(); /* search.cc */
 	qRegisterMetaType<std::string>();
+	qRegisterMetaType<Anime::SeriesSeason>();
+	qRegisterMetaType<Date::Year>("Date::Year");
 
 	session.config.Load();
 	Anime::db.LoadDatabaseFromDisk();