diff src/gui/pages/search.cc @ 305:91ac90a34003

core/time: remove Duration class, use regular functions instead this class was pretty useless anyway
author Paper <paper@paper.us.eu.org>
date Sun, 19 May 2024 15:56:20 -0400
parents 657fda1b9cac
children 5d3c9b31aa6e
line wrap: on
line diff
--- a/src/gui/pages/search.cc	Mon May 13 17:02:35 2024 -0400
+++ b/src/gui/pages/search.cc	Sun May 19 15:56:20 2024 -0400
@@ -196,8 +196,8 @@
 	menu->addAction(tr("Information"), [this, animes] {
 		for (auto& anime : animes) {
 			InformationDialog* dialog = new InformationDialog(
-			    *anime,
-			    [this, anime] {
+			    anime,
+			    [this](Anime::Anime* anime) {
 				    // UpdateAnime(anime->GetId());
 			    },
 			    InformationDialog::PAGE_MAIN_INFO, this);
@@ -235,8 +235,8 @@
 	Anime::Anime* anime = model->GetAnimeFromIndex(index);
 
 	InformationDialog* dialog = new InformationDialog(
-	    *anime,
-	    [this, anime] {
+	    anime,
+	    [this](Anime::Anime* anime) {
 		    // UpdateAnime(anime->GetId());
 	    },
 	    InformationDialog::PAGE_MAIN_INFO, this);