Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reversed if clause

  • Loading branch information...
commit ff0a6e769baf8b342b9bef9e27b2912cc67d199e 1 parent 9257fe3
@halogenandtoast halogenandtoast authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/UnsupportedContentHandler.cpp
View
6 src/UnsupportedContentHandler.cpp
@@ -11,11 +11,11 @@ UnsupportedContentHandler::UnsupportedContentHandler(WebPage *page, QNetworkRepl
void UnsupportedContentHandler::handleUnsupportedContent() {
QVariant contentMimeType = m_reply->header(QNetworkRequest::ContentTypeHeader);
- if(!contentMimeType.isNull()) {
+ if(contentMimeType.isNull()) {
+ this->finish(false);
+ } else {
this->loadUnsupportedContent();
this->finish(true);
- } else {
- this->finish(false);
}
this->deleteLater();
}
Please sign in to comment.
Something went wrong with that request. Please try again.