--- 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);
}
}