QTfrontend/pagedata.cpp
changeset 5766 ca9c7551bc8a
parent 5765 e87f6756773e
child 5768 852ba8f5685c
--- a/QTfrontend/pagedata.cpp	Sun Sep 04 20:21:08 2011 +0400
+++ b/QTfrontend/pagedata.cpp	Sun Sep 04 12:34:43 2011 -0400
@@ -88,12 +88,12 @@
 void PageDataDownload::pageDownloaded()
 {
     QNetworkReply * reply = qobject_cast<QNetworkReply *>(sender());
-    QString html = QString::fromUtf8(reply->readAll());
-    html.remove(0,html.indexOf("<!-- BEGIN -->"));
-    html.truncate(html.indexOf("<!-- END -->"));
 
     if(reply)
     {
+        QString html = QString::fromUtf8(reply->readAll());
+        html.remove(0,html.indexOf("<!-- BEGIN -->"));
+        html.truncate(html.indexOf("<!-- END -->"));
         web->setHtml(html);
     }
 }