@ -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;
|
||||
|
Reference in New Issue
Block a user