diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-12-31 05:27:59 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-12-31 05:27:59 +0100 |
commit | 9579231ccc36d9d32f4d5571ced91e8fe7851643 (patch) | |
tree | d91a8a010d6159d6a9b058b8383fc1da0d765bb7 /launcher/net/NetJob.cpp | |
parent | 9cc168c5261c6cd0523287e995da58beee8f5096 (diff) | |
download | PrismLauncher-9579231ccc36d9d32f4d5571ced91e8fe7851643.tar.gz PrismLauncher-9579231ccc36d9d32f4d5571ced91e8fe7851643.tar.bz2 PrismLauncher-9579231ccc36d9d32f4d5571ced91e8fe7851643.zip |
NOISSUE fix build and change how NetJob is used
Feed it network upfront...
Diffstat (limited to 'launcher/net/NetJob.cpp')
-rw-r--r-- | launcher/net/NetJob.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/launcher/net/NetJob.cpp b/launcher/net/NetJob.cpp index b190b3e9..9bad89ed 100644 --- a/launcher/net/NetJob.cpp +++ b/launcher/net/NetJob.cpp @@ -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); } |