Skip to content
This repository
Browse code

Reversed if clause

  • Loading branch information...
commit ff0a6e769baf8b342b9bef9e27b2912cc67d199e 1 parent 9257fe3
Matthew Mongeau authored September 23, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  src/UnsupportedContentHandler.cpp
6  src/UnsupportedContentHandler.cpp
@@ -11,11 +11,11 @@ UnsupportedContentHandler::UnsupportedContentHandler(WebPage *page, QNetworkRepl
11 11
 
12 12
 void UnsupportedContentHandler::handleUnsupportedContent() {
13 13
   QVariant contentMimeType = m_reply->header(QNetworkRequest::ContentTypeHeader);
14  
-  if(!contentMimeType.isNull()) {
  14
+  if(contentMimeType.isNull()) {
  15
+    this->finish(false);
  16
+  } else {
15 17
     this->loadUnsupportedContent();
16 18
     this->finish(true);
17  
-  } else {
18  
-    this->finish(false);
19 19
   }
20 20
   this->deleteLater();
21 21
 }

0 notes on commit ff0a6e7

Please sign in to comment.
Something went wrong with that request. Please try again.