mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
A good use of auto
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
8dfa3393dc
commit
6c45a990ef
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ void ModPage::openUrl(const QUrl& url)
|
|||
connect(model->activeJob(), &Task::finished, [url, slug, model, view] {
|
||||
for (int row = 0; row < model->rowCount({}); row++) {
|
||||
QModelIndex index = model->index(row);
|
||||
ModPlatform::IndexedPack pack = model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack>();
|
||||
auto pack = model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack>();
|
||||
if (pack.slug == slug) {
|
||||
view->setCurrentIndex(index);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue