oops
authornemo
Sun, 04 Sep 2011 12:34:43 -0400
changeset 5766 ca9c7551bc8a
parent 5765 e87f6756773e
child 5767 e00c0a56e80e
oops
QTfrontend/pagedata.cpp
--- 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);
     }
 }