diff options
Diffstat (limited to 'src/rekonqpage')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 2 |
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)) |