NOISSUE fix build and change how NetJob is used
Feed it network upfront...
This commit is contained in:
parent
9cc168c526
commit
9579231ccc
31 changed files with 103 additions and 113 deletions
|
@ -98,12 +98,6 @@ void NetJob::partProgress(int index, qint64 bytesReceived, qint64 bytesTotal)
|
|||
|
||||
void NetJob::executeTask()
|
||||
{
|
||||
if(!m_network) {
|
||||
qCritical() << "Attempted to start NetJob" << objectName() << "without the network set!";
|
||||
emitFailed(tr("Internal error: NetJob '%1' has been started without a network pointer!").arg(objectName()));
|
||||
return;
|
||||
}
|
||||
|
||||
// hack that delays early failures so they can be caught easier
|
||||
QMetaObject::invokeMethod(this, "startMoreParts", Qt::QueuedConnection);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue