comparison 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
comparison
equal deleted inserted replaced
304:2115488eb302 305:91ac90a34003
194 } 194 }
195 195
196 menu->addAction(tr("Information"), [this, animes] { 196 menu->addAction(tr("Information"), [this, animes] {
197 for (auto& anime : animes) { 197 for (auto& anime : animes) {
198 InformationDialog* dialog = new InformationDialog( 198 InformationDialog* dialog = new InformationDialog(
199 *anime, 199 anime,
200 [this, anime] { 200 [this](Anime::Anime* anime) {
201 // UpdateAnime(anime->GetId()); 201 // UpdateAnime(anime->GetId());
202 }, 202 },
203 InformationDialog::PAGE_MAIN_INFO, this); 203 InformationDialog::PAGE_MAIN_INFO, this);
204 204
205 dialog->show(); 205 dialog->show();
233 233
234 const QModelIndex index = model->index(selection.indexes().first().row()); 234 const QModelIndex index = model->index(selection.indexes().first().row());
235 Anime::Anime* anime = model->GetAnimeFromIndex(index); 235 Anime::Anime* anime = model->GetAnimeFromIndex(index);
236 236
237 InformationDialog* dialog = new InformationDialog( 237 InformationDialog* dialog = new InformationDialog(
238 *anime, 238 anime,
239 [this, anime] { 239 [this](Anime::Anime* anime) {
240 // UpdateAnime(anime->GetId()); 240 // UpdateAnime(anime->GetId());
241 }, 241 },
242 InformationDialog::PAGE_MAIN_INFO, this); 242 InformationDialog::PAGE_MAIN_INFO, this);
243 243
244 dialog->show(); 244 dialog->show();