summaryrefslogtreecommitdiff
path: root/src/rekonqpage
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-12-31 16:58:33 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-31 16:58:33 +0100
commitafd78fc32eb6e9425e08a27c37819a86f643aefc (patch)
tree0a302f3b72b503916554f8054f957e87bab8371d /src/rekonqpage
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-afd78fc32eb6e9425e08a27c37819a86f643aefc.tar.xz
Fix (stupid) crash while adding favorites via the "+" button
My fault, sorry... BUG: 312081
Diffstat (limited to 'src/rekonqpage')
-rw-r--r--src/rekonqpage/newtabpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 2d06f1dc..fa8020fe 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -91,7 +91,7 @@ void NewTabPage::generate(const KUrl &url)
QWebFrame *parentFrame = qobject_cast<QWebFrame *>(parent());
QWebPage *pg = parentFrame->page();
WebView *view = qobject_cast<WebView *>(pg->parent());
- WebTab *tab = qobject_cast<WebTab *>(view->parent());
+ WebTab *tab = view->parentTab();
// about:preview links
if (KUrl("about:settings").isParentOf(url))