diff options
| author | Jonathan Bauer | 2011-01-25 17:41:41 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-01-25 17:41:41 +0100 |
| commit | fbcf15745ca822e69dc770b7d74bb86198ce13d1 (patch) | |
| tree | 301d321d8181456554fb8f5882a211294a50f1fb /src/fbbrowser.cpp | |
| parent | yet another update (diff) | |
| download | fbgui-fbcf15745ca822e69dc770b7d74bb86198ce13d1.tar.gz fbgui-fbcf15745ca822e69dc770b7d74bb86198ce13d1.tar.xz fbgui-fbcf15745ca822e69dc770b7d74bb86198ce13d1.zip | |
fixed a few things...
Diffstat (limited to 'src/fbbrowser.cpp')
| -rw-r--r-- | src/fbbrowser.cpp | 8 |
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. |
