summaryrefslogtreecommitdiffstats
path: root/src/fbbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbbrowser.cpp')
-rw-r--r--src/fbbrowser.cpp8
1 files changed, 4 insertions, 4 deletions
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.