From c2a9d5111f388d87cfc8dd9f16ddf6eb5331b2d3 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 21 Jan 2011 17:49:51 +0100 Subject: URL validity check removed, will be done in the error handling of the request... --- fbbrowser/main.cpp | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'fbbrowser/main.cpp') diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp index b6c6dac..086f2c5 100644 --- a/fbbrowser/main.cpp +++ b/fbbrowser/main.cpp @@ -16,21 +16,13 @@ int main(int argc, char *argv[]) url = QUrl(argv[1]); else //Default URL to load url = QUrl("http://132.230.4.3/webkitTest.html"); - // Check if the URL is valid. - // TODO(joe): also check for correct host - // handle the case of a non-valid URL properly. - if (!url.isValid()) - qDebug() << "Invalid URL."; - else - { - qDebug() << "Valid URL."; - // Create a new Framebuffer-Browser object for displaying the given URL. - fbbrowser *fbb = new fbbrowser(url); - // Listen to the signalQuitAll() Signal to kill the app from within the browser. - QObject::connect(fbb, SIGNAL(signalQuitAll()), &a, SLOT(quit())); - // Display the browser. - fbb->show(); - } + // Create a new Framebuffer-Browser object for displaying the given URL. + fbbrowser *fbb = new fbbrowser(url); + // Listen to the signalQuitAll() Signal to kill the app from within the browser. + QObject::connect(fbb, SIGNAL(signalQuitAll()), &a, SLOT(quit())); + // Display the browser. + fbb->show(); + // Exit the application. return a.exec(); } -- cgit v1.2.3-55-g7522