summaryrefslogtreecommitdiff
path: root/src/webtab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webtab.cpp')
-rw-r--r--src/webtab.cpp11
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();
}