diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-06-17 07:50:49 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-06-17 07:50:49 +0200 |
commit | 02d530fd8897b9d1aa9cc3b0ad8712a3b17d468f (patch) | |
tree | 87cb17c446cc37250387afd12bc478ce6d2d36d5 | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-02d530fd8897b9d1aa9cc3b0ad8712a3b17d468f.tar.xz |
Super safe checks in WebTab::url() detection
BUG: 299400
-rw-r--r-- | src/webtab.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp index de7e134c..c049e459 100644 --- a/src/webtab.cpp +++ b/src/webtab.cpp @@ -121,7 +121,10 @@ WebView *WebTab::view() WebPage *WebTab::page() { - return view()->page(); + if (view()) + return view()->page(); + + return 0; } @@ -132,7 +135,11 @@ KUrl WebTab::url() return page()->loadingUrl(); } - return view()->url(); + if (view()) + return view()->url(); + + kDebug() << "OOPS... NO web classes survived! Returning an empty url..."; + return KUrl(); } |