add qassert

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-10-28 22:27:40 +02:00
parent 9cdda4377b
commit 94f65f8727
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -363,10 +363,7 @@ void ResourcePage::onResourceSelected()
return;
auto& version = current_pack->versions[m_selectedVersionIndex];
if (version.downloadUrl.isNull()) {
qCritical() << tr("It looks like the resource you selected doesn't have a download link, so Prism won't attempt to download it.");
return;
}
Q_ASSERT(!version.downloadUrl.isNull());
if (version.is_currently_selected)
removeResourceFromDialog(current_pack->name);
else