Fix hang if patch download fails.

This commit is contained in:
Jonathan Young 2014-05-15 20:01:31 +10:00
parent c9f1422f4a
commit 48d13fb321

View file

@ -124,6 +124,10 @@ void InstallWizard_Patch::downloadFinished()
if (!isCancelled && networkReply->error())
{
ui->lblStatus->setText(networkReply->errorString());
networkReply->abort();
networkReply->deleteLater();
isCancelled = true;
return;
}
networkReply->deleteLater();