diff options
| author | Jonathan Bauer | 2011-01-18 17:37:08 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-01-18 17:37:08 +0100 |
| commit | aa3e288bae5a5bb3da05f2b4966774c93d76c827 (patch) | |
| tree | e8ce65cc581b8ef4faf9c2af2aae7f048f88f4ff /fbbrowser | |
| parent | Added a check for validity of URL, incomplete though ! It doesn't seem to che... (diff) | |
| download | fbgui-aa3e288bae5a5bb3da05f2b4966774c93d76c827.tar.gz fbgui-aa3e288bae5a5bb3da05f2b4966774c93d76c827.tar.xz fbgui-aa3e288bae5a5bb3da05f2b4966774c93d76c827.zip | |
some comments...
Diffstat (limited to 'fbbrowser')
| -rw-r--r-- | fbbrowser/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp index 869d71c..b6c6dac 100644 --- a/fbbrowser/main.cpp +++ b/fbbrowser/main.cpp @@ -16,13 +16,15 @@ int main(int argc, char *argv[]) url = QUrl(argv[1]); else //Default URL to load url = QUrl("http://132.230.4.3/webkitTest.html"); - // Create a new Framebuffer-Browser object for displaying the given URL. + // 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."; - // qDebug() << "Badly formed 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())); |
