chore: fix some codeql warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -143,7 +143,9 @@ void AtlPage::onSelectionChanged(QModelIndex first, [[maybe_unused]] QModelIndex
|
||||
return;
|
||||
}
|
||||
|
||||
selected = filterModel->data(first, Qt::UserRole).value<ATLauncher::IndexedPack>();
|
||||
QVariant raw = filterModel->data(first, Qt::UserRole);
|
||||
Q_ASSERT(raw.canConvert<ATLauncher::IndexedPack>());
|
||||
selected = raw.value<ATLauncher::IndexedPack>();
|
||||
|
||||
ui->packDescription->setHtml(StringUtils::htmlListPatch(selected.description.replace("\n", "<br>")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user