add qassert
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
9cdda4377b
commit
94f65f8727
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue