From fbcf15745ca822e69dc770b7d74bb86198ce13d1 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 25 Jan 2011 17:41:41 +0100 Subject: fixed a few things... --- src/fbbrowser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fbbrowser.cpp') diff --git a/src/fbbrowser.cpp b/src/fbbrowser.cpp index 50fc86a..bd2eb8e 100644 --- a/src/fbbrowser.cpp +++ b/src/fbbrowser.cpp @@ -10,14 +10,14 @@ void fbbrowser::httpReadyRead() if(reply->error() == QNetworkReply::NoError) { qDebug() << "No error, loading given URL..."; - view->load(url); + view->load(this->baseUrl); } } fbbrowser::fbbrowser(const QUrl & url) { view = new QWebView(this); - + baseUrl = url; // Create QNetworkAccessManager which is needed to send/receive requests. manager = new QNetworkAccessManager(this); // Create a QNetworkRequest object and set its URL. @@ -27,8 +27,8 @@ fbbrowser::fbbrowser(const QUrl & url) // Check Internet connection // Let the manager send the request and receive the reply. // QNetworkReply *reply = manager->get(request); - *reply = manager->get(request); - connect(reply, SIGNAL(readyRead()), this, SLOT(httpReadyRead())); + reply = manager->get(request); + connect(reply, SIGNAL(finished()), this, SLOT(httpReadyRead())); //connect(reply, SIGNAL(finished()), this, SLOT()); // Check if the reply is an error message. -- cgit v1.2.3-55-g7522