chore: fix some codeql warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -166,7 +166,9 @@ void FlamePage::onSelectionChanged(QModelIndex curr, [[maybe_unused]] QModelInde
|
||||
return;
|
||||
}
|
||||
|
||||
current = listModel->data(curr, Qt::UserRole).value<Flame::IndexedPack>();
|
||||
QVariant raw = listModel->data(curr, Qt::UserRole);
|
||||
Q_ASSERT(raw.canConvert<Flame::IndexedPack>());
|
||||
current = raw.value<Flame::IndexedPack>();
|
||||
|
||||
if (!current.versionsLoaded || m_filterWidget->changed()) {
|
||||
qDebug() << "Loading flame modpack versions";
|
||||
|
||||
Reference in New Issue
Block a user