mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
rbutil: HttpGet: Return NetworkError in done signal.
Return the status value instead of simply a bool. Change-Id: I2bffaac0087418656e80c74dc352011a4ea32ab1
This commit is contained in:
parent
08b42791ff
commit
a0459de4d5
13 changed files with 35 additions and 46 deletions
|
|
@ -102,7 +102,7 @@ void ZipInstaller::installStart()
|
|||
}
|
||||
|
||||
|
||||
void ZipInstaller::downloadDone(bool error)
|
||||
void ZipInstaller::downloadDone(QNetworkReply::NetworkError error)
|
||||
{
|
||||
LOG_INFO() << "download done, error:" << error;
|
||||
QStringList zipContents; // needed later
|
||||
|
|
@ -118,7 +118,7 @@ void ZipInstaller::downloadDone(bool error)
|
|||
}
|
||||
if(m_getter->isCached())
|
||||
emit logItem(tr("Cached file used."), LOGINFO);
|
||||
if(error) {
|
||||
if(error != QNetworkReply::NoError) {
|
||||
emit logItem(tr("Download error: %1").arg(m_getter->errorString()), LOGERROR);
|
||||
emit done(true);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue