summaryrefslogtreecommitdiffstats
path: root/examples/network/http
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/http')
-rw-r--r--examples/network/http/httpwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp
index c7bf0c0dff..d0eb2529cd 100644
--- a/examples/network/http/httpwindow.cpp
+++ b/examples/network/http/httpwindow.cpp
@@ -249,7 +249,7 @@ void HttpWindow::httpFinished()
return;
}
- if (reply->error()) {
+ if (reply->networkError()) {
QFile::remove(fi.absoluteFilePath());
statusLabel->setText(tr("Download failed:\n%1.").arg(reply->errorString()));
downloadButton->setEnabled(true);