GH-4299 Don't hard crash on when missing network

This commit is contained in:
Janrupf
2021-12-29 16:54:20 +01:00
parent 4063a496d7
commit 6fe07561fe
2 changed files with 6 additions and 9 deletions

View File

@ -67,15 +67,6 @@ public slots:
virtual bool abort() override;
virtual void start(shared_qobject_ptr<QNetworkAccessManager> network) {
m_network = network;
start();
}
protected slots:
void start() override {
if(!m_network) {
throw "Missing network while trying to start " + objectName();
return;
}
Task::start();
}