More complete downloader.
This commit is contained in:
parent
1663f2a9c0
commit
15e780f35a
@ -42,13 +42,15 @@ QString WebPage::toPlainText() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WebPage::handleUnsupportedContent(QNetworkReply *reply) {
|
void WebPage::handleUnsupportedContent(QNetworkReply *reply) {
|
||||||
if (!reply)
|
if (!reply) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QUrl replyUrl = reply->url();
|
QUrl replyUrl = reply->url();
|
||||||
|
|
||||||
if (replyUrl.scheme() == QLatin1String("abp"))
|
if (replyUrl.scheme() == QLatin1String("abp")) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (reply->error()) {
|
switch (reply->error()) {
|
||||||
case QNetworkReply::NoError:
|
case QNetworkReply::NoError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user