Fix update download error show

This commit is contained in:
Gres 2020-04-11 18:07:50 +03:00
parent 3c39faaaad
commit 23cdc3e57c

View File

@ -187,9 +187,8 @@ void Loader::startDownloadUpdates(const QUrl &previous)
else {
const auto index = updateUrls_.indexOf(previous);
SOFT_ASSERT(index != -1, return );
if (index == updateUrls_.size() - 1)
return;
url = updateUrls_[index + 1];
if (index + 1 < updateUrls_.size())
url = updateUrls_[index + 1];
}
if (url.isEmpty()) {