summaryrefslogtreecommitdiffstats
path: root/fbbrowser/fbbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fbbrowser/fbbrowser.cpp')
-rw-r--r--fbbrowser/fbbrowser.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/fbbrowser/fbbrowser.cpp b/fbbrowser/fbbrowser.cpp
index b53134c..3844f66 100644
--- a/fbbrowser/fbbrowser.cpp
+++ b/fbbrowser/fbbrowser.cpp
@@ -22,20 +22,20 @@ fbbrowser::fbbrowser(const QUrl & url)
//connect(reply, SIGNAL(error()), this, SLOT());
//connect(reply, SIGNAL(finished()), this, SLOT());
- // Check if the reply is an error message (?)
+ // Check if the reply is an error message.
qDebug() << reply->error();
//TODO: error differentiation
- if(reply->error()!=0)
- {
- qDebug() << "show errorPage";
- view->load(QUrl("qrc:/html/errorPage.html"));
- }
- else
+ if(reply->error() == QNetworkReply::NoError)
{
qDebug() << "show Page";
view->load(url);
}
+ else
+ {
+ qDebug() << "show errorPage";
+ view->load(QUrl("qrc:/html/errorPage.html"));
+ }
//remove the window decoration
this->setWindowFlags(Qt::SplashScreen);