Fix update download error show
This commit is contained in:
parent
3c39faaaad
commit
23cdc3e57c
@ -187,9 +187,8 @@ void Loader::startDownloadUpdates(const QUrl &previous)
|
|||||||
else {
|
else {
|
||||||
const auto index = updateUrls_.indexOf(previous);
|
const auto index = updateUrls_.indexOf(previous);
|
||||||
SOFT_ASSERT(index != -1, return );
|
SOFT_ASSERT(index != -1, return );
|
||||||
if (index == updateUrls_.size() - 1)
|
if (index + 1 < updateUrls_.size())
|
||||||
return;
|
url = updateUrls_[index + 1];
|
||||||
url = updateUrls_[index + 1];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.isEmpty()) {
|
if (url.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user