Mercurial > minori
comparison src/gui/pages/anime_list.cpp @ 63:3d2decf093bb
*: fix many clang warnings
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 06:39:47 -0400 |
| parents | 4c6dd5999b39 |
| children | fe719c109dbc |
comparison
equal
deleted
inserted
replaced
| 62:4c6dd5999b39 | 63:3d2decf093bb |
|---|---|
| 313 ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel())->GetAnimeFromIndex(index); | 313 ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel())->GetAnimeFromIndex(index); |
| 314 if (!anime) { | 314 if (!anime) { |
| 315 return; | 315 return; |
| 316 } | 316 } |
| 317 | 317 |
| 318 InformationDialog* dialog = new InformationDialog(*anime, [this, anime] { | 318 InformationDialog* dialog = new InformationDialog( |
| 319 Services::UpdateAnimeEntry(anime->GetId()); | 319 *anime, |
| 320 Refresh(); | 320 [this, anime] { |
| 321 }, this); | 321 Services::UpdateAnimeEntry(anime->GetId()); |
| 322 Refresh(); | |
| 323 }, | |
| 324 this); | |
| 322 | 325 |
| 323 dialog->show(); | 326 dialog->show(); |
| 324 dialog->raise(); | 327 dialog->raise(); |
| 325 dialog->activateWindow(); | 328 dialog->activateWindow(); |
| 326 }); | 329 }); |
| 338 const QModelIndex index = ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel()) | 341 const QModelIndex index = ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel()) |
| 339 ->index(selection.indexes().first().row()); | 342 ->index(selection.indexes().first().row()); |
| 340 Anime::Anime* anime = | 343 Anime::Anime* anime = |
| 341 ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel())->GetAnimeFromIndex(index); | 344 ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel())->GetAnimeFromIndex(index); |
| 342 | 345 |
| 343 InformationDialog* dialog = new InformationDialog(*anime, [this, anime] { | 346 InformationDialog* dialog = new InformationDialog( |
| 344 Services::UpdateAnimeEntry(anime->GetId()); | 347 *anime, |
| 345 Refresh(); | 348 [this, anime] { |
| 346 }, this); | 349 Services::UpdateAnimeEntry(anime->GetId()); |
| 350 Refresh(); | |
| 351 }, | |
| 352 this); | |
| 347 | 353 |
| 348 dialog->show(); | 354 dialog->show(); |
| 349 dialog->raise(); | 355 dialog->raise(); |
| 350 dialog->activateWindow(); | 356 dialog->activateWindow(); |
| 351 } | 357 } |
